From ddfe0f0e278492d974ac22a74d6f83dd86b76a56 Mon Sep 17 00:00:00 2001 From: theli Date: Sat, 13 May 2006 15:45:04 +0000 Subject: [PATCH] *) don't try to parse referer string if it's null git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2090 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaCrawlStacker.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/de/anomic/plasma/plasmaCrawlStacker.java b/source/de/anomic/plasma/plasmaCrawlStacker.java index daff35276..9553d5870 100644 --- a/source/de/anomic/plasma/plasmaCrawlStacker.java +++ b/source/de/anomic/plasma/plasmaCrawlStacker.java @@ -241,11 +241,13 @@ public final class plasmaCrawlStacker { */ URL nexturl = null, referrerURL = null; if ((initiatorHash == null) || (initiatorHash.length() == 0)) initiatorHash = plasmaURL.dummyHash; - try { - referrerURL = new URL(referrerString); - } catch (MalformedURLException e) { - referrerURL = null; - referrerString = null; + if (referrerString != null) { + try { + referrerURL = new URL(referrerString); + } catch (MalformedURLException e) { + referrerURL = null; + referrerString = null; + } } String referrerHash = (referrerString==null)?null:plasmaURL.urlHash(referrerString); try {