From 518b20147c1ee0b48843af90feedcf7d42f279f5 Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 14 Apr 2013 02:01:27 +0200 Subject: [PATCH] skip postprocessing during document.store if no citation index connected (prevent null pointer exception) --- source/net/yacy/search/index/Segment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/search/index/Segment.java b/source/net/yacy/search/index/Segment.java index 4a615633d..4d8f99763 100644 --- a/source/net/yacy/search/index/Segment.java +++ b/source/net/yacy/search/index/Segment.java @@ -543,8 +543,9 @@ public class Segment { } // ENRICH DOCUMENT WITH RANKING INFORMATION - this.fulltext.getDefaultConfiguration().postprocessing_references(this, null, vector, url); - + if (this.connectedCitation()) { + this.fulltext.getDefaultConfiguration().postprocessing_references(this, null, vector, url); + } // STORE TO SOLR String error = null; tryloop: for (int i = 0; i < 20; i++) {