Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
exceptions for better testing of bug http://www.yacy-forum.de/viewtopic.php?p=9852#9852
orbiter979a3ee3c052
diff --git a/source/de/anomic/kelondro/kelondroTree.java b/source/de/anomic/kelondro/kelondroTree.javaindex 8a9e8b773..244200bb5 100644--- a/source/de/anomic/kelondro/kelondroTree.java+++ b/source/de/anomic/kelondro/kelondroTree.java@@ -217,7 +217,14 @@ public class kelondroTree extends kelondroRecords implements Comparator {found = false;return;}- otherkey = new String(thenode.getKey());+ if (thenode == null) {+ throw new kelondroException(filename, "kelondroTree.searchproc: thenode==null");+ }+ try {+ otherkey = new String(thenode.getKey());+ } catch (NullPointerException e) {+ throw new kelondroException(filename, "kelondroTree.searchproc: nullpointer" + e.getMessage());+ }if (visitedNodeKeys.containsKey(otherkey)) {// we have loops in the database.// to fix this, all affected nodes must be patched