Skip to content

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

fix for assert

orbiterb95ae2518ba0
diff --git a/source/net/yacy/kelondro/index/RowCollection.java b/source/net/yacy/kelondro/index/RowCollection.java
index 82ec3bd63..9af107477 100644
--- a/source/net/yacy/kelondro/index/RowCollection.java
+++ b/source/net/yacy/kelondro/index/RowCollection.java
@@ -257,7 +257,7 @@ public class RowCollection implements Iterable<Row.Entry>, Cloneable {
if (allocram <= Integer.MAX_VALUE && MemoryControl.request(allocram, false)) return allocram;
allocram = needed * growfactorSmall100 / 100L;
allocram -= allocram % rowdef.objectsize;
- assert allocram > 0 : "elements = " + elements + ", new = " + allocram;
+ assert allocram >= 0 : "elements = " + elements + ", new = " + allocram;
if (allocram <= Integer.MAX_VALUE && MemoryControl.request(allocram, forcegc)) return allocram;
return needed;
}