From a973bfafad4360fb46a224b61749f27bddf2c9f1 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Thu, 24 Dec 2009 22:14:05 +0000 Subject: [PATCH] SOLR-1131: createFields doesn't return null git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@893814 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/update/DocumentBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/solr/update/DocumentBuilder.java b/src/java/org/apache/solr/update/DocumentBuilder.java index fbab2c05c48..83d331cbe1e 100644 --- a/src/java/org/apache/solr/update/DocumentBuilder.java +++ b/src/java/org/apache/solr/update/DocumentBuilder.java @@ -59,7 +59,7 @@ public class DocumentBuilder { // returns null, then we don't store the field. if (sfield.isPolyField()) { Fieldable[] fields = sfield.createFields(val, boost); - if (fields != null && fields.length > 0) { + if (fields.length > 0) { if (!sfield.multiValued()) { String oldValue = map.put(sfield.getName(), val); if (oldValue != null) {