analysis.xml: fix potential null dereference
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 28 Jan 2016 03:40:16 +0000 (22:40 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 28 Jan 2016 16:25:23 +0000 (11:25 -0500)
commitbc21b431d45d00f5396cff23c066c1316183c8d4
tree0ae198b0a4156eba472369834005a842d3ca86ac
parent4cfd8160e872f6463a2a868ad52e1ca38bd97e59
analysis.xml: fix potential null dereference

File#listFiles() can return null. Even though the test
"isDirectory()" and "exists()" are able to pick it up, executing
the command and null checking it is the best garanty.

Change-Id: Ic3cefdaecf3d5d88dbeaeb3f3d58689abdb05347
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/65332
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/tmf/analysis/xml/core/module/XmlAnalysisModuleSource.java
This page took 0.03035 seconds and 5 git commands to generate.