From eee6322aaf816be0fcc40b23da9918cd3db24731 Mon Sep 17 00:00:00 2001 From: theli Date: Tue, 28 Jun 2005 08:07:41 +0000 Subject: [PATCH] *) Adding redirection support to plasmaCrawlWorker.java git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@328 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaCrawlWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java index c0c7a167c..6b1edcf59 100644 --- a/source/de/anomic/plasma/plasmaCrawlWorker.java +++ b/source/de/anomic/plasma/plasmaCrawlWorker.java @@ -380,7 +380,7 @@ public final class plasmaCrawlWorker extends Thread { log.logInfo("REJECTED WRONG STATUS TYPE '" + res.status + "' for url " + url.toString()); // not processed any further } - remote.close(); + if (remote != null) remote.close(); } catch (Exception e) { // this may happen if the targeted host does not exist or anything with the // remote server was wrong.