Skip to content

Commit

Permalink
fix NPE Idean#200
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Cointepas committed Jan 17, 2019
1 parent c6636d1 commit c2e8f86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ private void collectClassMeasures(NodeList nodeList) {

private void collectFileData(String filePath, NodeList nodeList) {
InputFile resource = getFile(filePath);
LOGGER.info("Collect file data: {}",resource.toString());
if (resource != null) {
LOGGER.info("Collect file data: {}",resource.toString());
boolean lineAdded = false;
NewCoverage coverage = context.newCoverage();
coverage.onFile(resource);
Expand Down

0 comments on commit c2e8f86

Please sign in to comment.