From 7dc59979bcc379dbc608543e69a4612449b4c615 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Mon, 18 Jun 2012 21:25:39 +0200 Subject: [PATCH] fix for npe, possibly for http://bugs.yacy.net/view.php?id=195 --- source/net/yacy/repository/LoaderDispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/repository/LoaderDispatcher.java b/source/net/yacy/repository/LoaderDispatcher.java index 24f8ebbcf..0b579ba9e 100644 --- a/source/net/yacy/repository/LoaderDispatcher.java +++ b/source/net/yacy/repository/LoaderDispatcher.java @@ -190,7 +190,7 @@ public final class LoaderDispatcher { final String host = url.getHost(); // check if url is in blacklist - if (checkBlacklist && Switchboard.urlBlacklist.isListed(BlacklistType.CRAWLER, host.toLowerCase(), url.getFile())) { + if (checkBlacklist && host != null && Switchboard.urlBlacklist.isListed(BlacklistType.CRAWLER, host.toLowerCase(), url.getFile())) { this.sb.crawlQueues.errorURL.push(request, this.sb.peers.mySeed().hash.getBytes(), new Date(), 1, FailCategory.FINAL_LOAD_CONTEXT, "url in blacklist", -1); throw new IOException("DISPATCHER Rejecting URL '" + request.url().toString() + "'. URL is in blacklist."); }