From a28faabfd2067a515b5903eabad91b9db3e7cd42 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 14 Sep 2008 20:03:59 +0000 Subject: [PATCH] fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=1351&p=9242#p9242 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5154 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/crawler/ResultURLs.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/crawler/ResultURLs.java b/source/de/anomic/crawler/ResultURLs.java index dc13a6ab6..d5d325494 100644 --- a/source/de/anomic/crawler/ResultURLs.java +++ b/source/de/anomic/crawler/ResultURLs.java @@ -284,9 +284,11 @@ public final class ResultURLs { public synchronized boolean remove(final String urlHash) { if (urlHash == null) return false; + String hash; for (int stack = 1; stack <= 6; stack++) { for (int i = getStackSize(stack) - 1; i >= 0; i--) { - if (getUrlHash(stack, i).equals(urlHash)) { + hash = getUrlHash(stack, i); + if (hash != null && hash.equals(urlHash)) { removeStack(stack, i); return true; }