Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

NPE fix

Michael Peter Christenf748b0aa7c0c
diff --git a/source/net/yacy/cora/protocol/http/HTTPClient.java b/source/net/yacy/cora/protocol/http/HTTPClient.java
index 8006a9835..d98dda4e3 100644
--- a/source/net/yacy/cora/protocol/http/HTTPClient.java
+++ b/source/net/yacy/cora/protocol/http/HTTPClient.java
@@ -605,7 +605,7 @@ public class HTTPClient {
} catch (final IOException e) {
ConnectionInfo.removeConnection(httpUriRequest.hashCode());
httpUriRequest.abort();
- throw new IOException("Client can't execute: " + e.getCause().getMessage());
+ throw new IOException("Client can't execute: " + (e.getCause() == null ? e.getMessage() : e.getCause().getMessage()));
}
}