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.