From 4a9c7d672ed83604123448501d73d18258243c6f Mon Sep 17 00:00:00 2001 From: kimchy Date: Fri, 13 Aug 2010 23:50:16 +0300 Subject: [PATCH] clean code --- .../java/org/elasticsearch/search/highlight/HighlightPhase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/highlight/HighlightPhase.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/highlight/HighlightPhase.java index 4a1a1e73d1e..4aceed58180 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/search/highlight/HighlightPhase.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/search/highlight/HighlightPhase.java @@ -78,7 +78,7 @@ public class HighlightPhase implements SearchPhase { if (mapper != null) { indexName = mapper.names().indexName(); } - String[] fragments = null; + String[] fragments; try { fragments = highlighter.getBestFragments(fieldQuery, context.searcher().getIndexReader(), docId, indexName, parsedHighlightField.fragmentCharSize(), parsedHighlightField.numberOfFragments()); } catch (IOException e) {