From a878c7982c04b42bec9d4e26e5bfeb2102e8bc4f Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 25 Feb 2014 03:19:41 +0100 Subject: [PATCH] prevent npe --- source/net/yacy/crawler/CrawlStacker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/crawler/CrawlStacker.java b/source/net/yacy/crawler/CrawlStacker.java index 34e2b5ebe..5f69eeda0 100644 --- a/source/net/yacy/crawler/CrawlStacker.java +++ b/source/net/yacy/crawler/CrawlStacker.java @@ -405,7 +405,7 @@ public final class CrawlStacker { // do double-check if (dbocc == HarvestProcess.ERRORS) { final CollectionConfiguration.FailDoc errorEntry = this.nextQueue.errorURL.get(urlhash); - return "double in: errors (" + errorEntry.getFailReason() + ")"; + return "double in: errors (" + (errorEntry == null ? "NULL" : errorEntry.getFailReason()) + ")"; } return "double in: " + dbocc.toString(); }