mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 10:01:35 +01:00
Fix issue #799 - Initialize exCol to prevent NPE
This commit is contained in:
@@ -691,6 +691,9 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
|
|||||||
}
|
}
|
||||||
if (!isResolved) {
|
if (!isResolved) {
|
||||||
getLog().error("Unable to resolve system scoped dependency: " + dependencyNode.toNodeString());
|
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: "
|
exCol.addException(new DependencyNotFoundException("Unable to resolve system scoped dependency: "
|
||||||
+ dependencyNode.toNodeString()));
|
+ dependencyNode.toNodeString()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user