File tree 1 file changed +4
-3
lines changed
src/org/zaproxy/zap/control
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2118,7 +2118,7 @@ public static class InvalidAddOnException extends IOException {
2118
2118
private final ValidationResult validationResult ;
2119
2119
2120
2120
private InvalidAddOnException (ValidationResult validationResult ) {
2121
- super (getRootCauseMessage (validationResult . getException () ), validationResult .getException ());
2121
+ super (getRootCauseMessage (validationResult ), validationResult .getException ());
2122
2122
this .validationResult = validationResult ;
2123
2123
}
2124
2124
@@ -2132,9 +2132,10 @@ public ValidationResult getValidationResult() {
2132
2132
}
2133
2133
}
2134
2134
2135
- private static String getRootCauseMessage (Exception exception ) {
2135
+ private static String getRootCauseMessage (ValidationResult validationResult ) {
2136
+ Exception exception = validationResult .getException ();
2136
2137
if (exception == null ) {
2137
- return null ;
2138
+ return validationResult . getValidity (). toString () ;
2138
2139
}
2139
2140
Throwable root = ExceptionUtils .getRootCause (exception );
2140
2141
return root == null ? exception .getLocalizedMessage () : root .getLocalizedMessage ();
You can’t perform that action at this time.
0 commit comments