Skip to content

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

quickfix for http://www.yacy-forum.de/viewtopic.php?p=19482#19482

orbiterd6213f8a8596
diff --git a/source/de/anomic/plasma/plasmaSwitchboardQueue.java b/source/de/anomic/plasma/plasmaSwitchboardQueue.java
index 85255993a..cd353475b 100644
--- a/source/de/anomic/plasma/plasmaSwitchboardQueue.java
+++ b/source/de/anomic/plasma/plasmaSwitchboardQueue.java
@@ -131,7 +131,9 @@ public class plasmaSwitchboardQueue {
public Entry pop() throws IOException {
if (sbQueueStack.size() == 0) return null;
- return new Entry(sbQueueStack.pot());
+ byte[][] b = sbQueueStack.pot();
+ if (b == null) return null;
+ return new Entry(b);
}
public Entry remove(int index) throws IOException {