Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
small bugfix
orbiterdc056fabf330
diff --git a/source/de/anomic/kelondro/kelondroRecords.java b/source/de/anomic/kelondro/kelondroRecords.javaindex 88c4f215c..6eef999dd 100644--- a/source/de/anomic/kelondro/kelondroRecords.java+++ b/source/de/anomic/kelondro/kelondroRecords.java@@ -1122,7 +1122,9 @@ public class kelondroRecords {while (hasNext()) {Node nn = next0();byte[] key = nn.getKey();- if ((key == null) || ((key[0] == 0) && (key[1] == 0)) || ((key[2] == 0) && (key[3] == 0))) {+ if ((key == null) ||+ ((key.length > 1) && ((key[0] == 0) && (key[1] == 0))) ||+ ((key.length > 3) && ((key[2] == 0) && (key[3] == 0)))) {// this is an deleted node; probably not commited with disposeif (fullyMarked) try {dispose(nn.handle);} catch (IOException e) {} // mark this now as deletedcontinue;