Skip to content

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

npe fix

Michael Peter Christen14186e815e83
diff --git a/source/net/yacy/kelondro/blob/Heap.java b/source/net/yacy/kelondro/blob/Heap.java
index 3894b48ce..54bf54d8c 100644
--- a/source/net/yacy/kelondro/blob/Heap.java
+++ b/source/net/yacy/kelondro/blob/Heap.java
@@ -377,7 +377,7 @@ public final class Heap extends HeapModifier implements BLOB {
if (b.length == 0) return true;
// then look if we can use a free entry
- if (this.free.isEmpty()) return false;
+ if (this.free == null || this.free.isEmpty()) return false;
// find the largest entry
long lseek = -1;