mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 08:39:24 +01:00
fixed NPE
Former-commit-id: 05f57ec103791b6c5ea019c54c828b3c97a415b9
This commit is contained in:
@@ -244,7 +244,7 @@ public final class Downloader {
|
|||||||
*/
|
*/
|
||||||
protected static void analyzeException(IOException ex) throws DownloadFailedException {
|
protected static void analyzeException(IOException ex) throws DownloadFailedException {
|
||||||
Throwable cause = ex;
|
Throwable cause = ex;
|
||||||
do {
|
while (cause != null) {
|
||||||
if (cause instanceof InvalidAlgorithmParameterException) {
|
if (cause instanceof InvalidAlgorithmParameterException) {
|
||||||
final String keystore = System.getProperty("javax.net.ssl.keyStore");
|
final String keystore = System.getProperty("javax.net.ssl.keyStore");
|
||||||
final String version = System.getProperty("java.version");
|
final String version = System.getProperty("java.version");
|
||||||
@@ -257,6 +257,6 @@ public final class Downloader {
|
|||||||
throw new DownloadFailedException("Error making HTTPS request. Please see the log for more details.");
|
throw new DownloadFailedException("Error making HTTPS request. Please see the log for more details.");
|
||||||
}
|
}
|
||||||
cause = cause.getCause();
|
cause = cause.getCause();
|
||||||
} while (cause.getCause() != null);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user