From 1f5b5c01116e165a0dbe3a6cad2a4fae0d445deb Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 10 Feb 2015 08:33:30 +0100 Subject: [PATCH] npe fix for latest scraper feature --- source/net/yacy/document/Condenser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/document/Condenser.java b/source/net/yacy/document/Condenser.java index 06a2b2807..21dc41bac 100644 --- a/source/net/yacy/document/Condenser.java +++ b/source/net/yacy/document/Condenser.java @@ -360,7 +360,7 @@ public final class Condenser { Set vocabularyNames = LibraryProvider.autotagging.getVocabularyNames(); //Collection vocabularies = LibraryProvider.autotagging.getVocabularies(); //assert vocabularyNames.size() == vocabularies.size(); - Map vocMap = scraper.removeVocMap(root); + Map vocMap = scraper == null ? null : scraper.removeVocMap(root); if (vocMap != null) { for (Map.Entry entry: vocMap.entrySet()) { String navigatorName = entry.getKey();