From ab894d26bcf95b0b2dbb2bbfa12033b663418d80 Mon Sep 17 00:00:00 2001 From: theli Date: Sun, 21 Aug 2005 22:48:37 +0000 Subject: [PATCH] *) Bugfix for "plasmaSwitchboard.deQueue: null" Bug (hopefully) See: http://www.yacy-forum.de/viewtopic.php?p=8135#8135 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@570 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaSwitchboardQueue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]);