Skip to content

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

bugfix for null compare see http://www.yacy-forum.de/viewtopic.php?p=16980#16980

orbiter0017812b2edd
diff --git a/source/de/anomic/kelondro/kelondroTree.java b/source/de/anomic/kelondro/kelondroTree.java
index f4c951023..96cf5b6d3 100644
--- a/source/de/anomic/kelondro/kelondroTree.java
+++ b/source/de/anomic/kelondro/kelondroTree.java
@@ -265,7 +265,7 @@ public class kelondroTree extends kelondroRecords implements kelondroIndex {
throw new kelondroException(filename, "kelondroTree.Search.process: thenode==null");
}
k = thenode.getKey();
- if ((k != null) & (visitedNodeKeys.contains(k))) {
+ if ((k != null) && (visitedNodeKeys.contains(k))) {
// we have loops in the database.
// to fix this, all affected nodes must be patched
thenode.setOHByte(magic, (byte) 1);