Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

npe fix

Michael Peter Christen3acf4163356d
diff --git a/source/net/yacy/crawler/CrawlSwitchboard.java b/source/net/yacy/crawler/CrawlSwitchboard.java
index 473ed7cfa..85411379d 100644
--- a/source/net/yacy/crawler/CrawlSwitchboard.java
+++ b/source/net/yacy/crawler/CrawlSwitchboard.java
@@ -586,6 +586,7 @@ public final class CrawlSwitchboard {
Request r;
while (sei.hasNext()) {
r = sei.next();
+ if (r == null) continue;
String handle = r.profileHandle();
RowHandleSet us = this.profilesActiveCrawlsCounter.get(handle);
if (us == null) {us = new RowHandleSet(Word.commonHashLength, Word.commonHashOrder, 0); this.profilesActiveCrawlsCounter.put(handle, us);}