From 3c5abedabffed79954f64add42b536557a0b5286 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sat, 24 Aug 2013 23:36:50 +0200 Subject: [PATCH] NPE during shutdown fix --- source/net/yacy/peers/Dispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/peers/Dispatcher.java b/source/net/yacy/peers/Dispatcher.java index 8a05622fe..b206ba3cc 100644 --- a/source/net/yacy/peers/Dispatcher.java +++ b/source/net/yacy/peers/Dispatcher.java @@ -317,7 +317,7 @@ public class Dispatcher { } // put the entry into the cloud - if (entry.containersSize() > 0) this.transmissionCloud.put(pTArray, entry); + if (this.transmissionCloud != null && entry.containersSize() > 0) this.transmissionCloud.put(pTArray, entry); } }