diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/exception/ExceptionCollection.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/exception/ExceptionCollection.java index 4f5fe058a..cf0a1015f 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/exception/ExceptionCollection.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/exception/ExceptionCollection.java @@ -86,6 +86,7 @@ public class ExceptionCollection extends Exception { */ public ExceptionCollection(Throwable exceptions, boolean fatal) { super(); + this.exceptions = new ArrayList(); this.exceptions.add(exceptions); this.fatal = fatal; } @@ -97,6 +98,7 @@ public class ExceptionCollection extends Exception { */ public ExceptionCollection(String msg, Throwable exception) { super(msg); + this.exceptions = new ArrayList(); this.exceptions.add(exception); this.fatal = false; }