Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) fixed NullPointerException in plasmaWordIndexEntity See: http://www.yacy-forum.de/viewtopic.php?t=1921
hydrox8ab1d6ff4b77
diff --git a/source/de/anomic/plasma/plasmaWordIndexEntity.java b/source/de/anomic/plasma/plasmaWordIndexEntity.javaindex 2a0b4083c..148732c6a 100644--- a/source/de/anomic/plasma/plasmaWordIndexEntity.java+++ b/source/de/anomic/plasma/plasmaWordIndexEntity.java@@ -194,7 +194,8 @@ public final class plasmaWordIndexEntity {// returns true if there was an entry before, false if the key did not exist// if after the removal the file is empty, then the file can be deleted if// the flag deleteComplete is set.- boolean wasEntry = (theIndex.remove(urlHash.getBytes()) != null);+ if (urlHash == null || theIndex == null) return false;+ boolean wasEntry = (theIndex.remove(urlHash.getBytes()) != null);if ((theIndex.size() == 0) && (deleteComplete)) deleteComplete();return wasEntry;}