Skip to content

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

more bugfixes for the new row/stack handling changes

orbiter09f780df279f
diff --git a/source/de/anomic/index/indexRAMCacheRI.java b/source/de/anomic/index/indexRAMCacheRI.java
index b0b048ddc..3b7b01d93 100644
--- a/source/de/anomic/index/indexRAMCacheRI.java
+++ b/source/de/anomic/index/indexRAMCacheRI.java
@@ -189,7 +189,7 @@ public final class indexRAMCacheRI extends indexAbstractRI implements indexRI {
while (i-- > 0) {
// get out one entry
row = dumpArray.get(i);
- if (row == null) continue;
+ if ((row == null) || (row.empty(0)) || (row.empty(3)) || (row.empty(4))) continue;
wordHash = row.getColString(0, "UTF-8");
//creationTime = kelondroRecords.bytes2long(row[2]);
wordEntry = new indexURLEntry(row.getColString(3, "UTF-8"), row.getColString(4, "UTF-8"));
diff --git a/source/de/anomic/plasma/plasmaSwitchboardQueue.java b/source/de/anomic/plasma/plasmaSwitchboardQueue.java
index f8c157e53..036fa1d8d 100644
--- a/source/de/anomic/plasma/plasmaSwitchboardQueue.java
+++ b/source/de/anomic/plasma/plasmaSwitchboardQueue.java
@@ -158,7 +158,7 @@ public class plasmaSwitchboardQueue {
try {
ArrayList list = sbQueueStack.botList(index);
for (int i = 0; i < list.size(); i++) {
- list.set(i, new Entry((byte[][]) list.get(i)));
+ list.set(i, new Entry((kelondroRow.Entry) list.get(i)));
}
return list;
} catch (kelondroException e) {