Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=206&hilit=&p=1130#p1130
orbiter7ff4357184fc
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 157fccec3..1723bc941 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -1475,11 +1475,15 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serpublic boolean acceptURL(URL url) {// returns true if the url can be accepted accoring to network.unit.domain- return acceptURL(serverDomains.dnsResolve(url.getHost()));+ if (url == null) return false;+ String host = url.getHost();+ if (host == null) return false;+ return acceptURL(serverDomains.dnsResolve(host));}public boolean acceptURL(InetAddress hostAddress) {// returns true if the url can be accepted accoring to network.unit.domain+ if (hostAddress == null) return false; // if we don't know the host, we cannot load that resource anywayif (this.acceptGlobalURLs && this.acceptLocalURLs) return true; // fast shortcutboolean local = hostAddress.isSiteLocalAddress() || hostAddress.isLoopbackAddress();return (this.acceptGlobalURLs && !local) || (this.acceptLocalURLs && local);