Skip to content

Commit

Permalink
Fix IllegalArgumentException: Unknow input path type: null
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Guerin committed Jul 12, 2016
1 parent 530493b commit 844518f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private void collectPackageMeasures(SMInputCursor pack) throws XMLStreamExceptio
}

private boolean resourceExists(InputFile file) {
return context.getResource(file) != null;
return file != null && context.getResource(file) != null;
}

private static void collectFileMeasures(SMInputCursor clazz, Map<String, CoverageMeasuresBuilder> builderByFilename) throws XMLStreamException {
Expand Down

0 comments on commit 844518f

Please sign in to comment.