Skip to content

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

*) Bugfix for "plasmaSwitchboard.deQueue: null" Bug (hopefully) See: http://www.yacy-forum.de/viewtopic.php?p=8135#8135

theliab894d26bcf9
diff --git a/source/de/anomic/plasma/plasmaSwitchboardQueue.java b/source/de/anomic/plasma/plasmaSwitchboardQueue.java
index 72e4d1049..6a8e7c2a5 100644
--- a/source/de/anomic/plasma/plasmaSwitchboardQueue.java
+++ b/source/de/anomic/plasma/plasmaSwitchboardQueue.java
@@ -167,10 +167,10 @@ public class plasmaSwitchboardQueue {
} catch (MalformedURLException e) {
this.url = null;
}
- this.referrerHash = new String(row[1]);
+ this.referrerHash = (row[1] == null) ? null : new String(row[1]);
this.ifModifiedSince = (ims == 0) ? null : new Date(ims);
this.flags = ((flags & 1) == 1) ? (byte) 1 : (byte) 0;
- this.initiator = new String(row[4]);
+ this.initiator = (row[4] == null) ? null : new String(row[4]);
this.depth = (int) serverCodings.enhancedCoder.decodeBase64Long(new String(row[5]));
this.profileHandle = new String(row[6]);
this.anchorName = (row[7] == null) ? null : new String(row[7]);