Skip to content

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

*) Bugfix for NullpointerException if the seeds IP could not be resolved

thelib4ab183518d8
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java
index 2eb54037b..2b37de81b 100644
--- a/source/de/anomic/http/httpd.java
+++ b/source/de/anomic/http/httpd.java
@@ -1419,6 +1419,7 @@ public final class httpd implements serverHandler {
if (thisSeedIP == null || thisSeedPort == null) return false;
InetAddress seedInetAddress = httpc.dnsResolve(thisSeedIP);
InetAddress hostInetAddress = httpc.dnsResolve(hostName);
+ if (seedInetAddress == null || hostInetAddress == null) return false;
// if it's equal, the hostname points to this seed
return (seedInetAddress.equals(hostInetAddress));