Skip to content

Commit

Permalink
Fixed NPE on LizardReportParser.addComplexityFileMeasures
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy1978 committed Jan 24, 2020
1 parent 7f4b3ed commit d0c4413
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ private void parseMeasure(String type, NodeList itemList) {
NodeList values = itemElement.getElementsByTagName(VALUE);
if (FILE_MEASURE.equalsIgnoreCase(type)) {
InputFile inputFile = getFile(name);
addComplexityFileMeasures(inputFile, values);
if (inputFile != null) {
addComplexityFileMeasures(inputFile, values);
}
} else if (FUNCTION_MEASURE.equalsIgnoreCase(type)) {
addComplexityFunctionMeasures(new SwiftFunction(0,name), values);
}
Expand Down

0 comments on commit d0c4413

Please sign in to comment.