Merge pull request #800 from aikebah/issue-799

Fix issue #799 - Initialize exCol to prevent NPE
This commit is contained in:
Jeremy Long
2017-07-14 06:59:41 -04:00
committed by GitHub

View File

@@ -691,6 +691,9 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
}
if (!isResolved) {
getLog().error("Unable to resolve system scoped dependency: " + dependencyNode.toNodeString());
if (exCol == null) {
exCol = new ExceptionCollection();
}
exCol.addException(new DependencyNotFoundException("Unable to resolve system scoped dependency: "
+ dependencyNode.toNodeString()));
}