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
This commit is contained in:
Yonik Seeley 2009-12-24 22:14:05 +00:00
parent 88b6768a97
commit a973bfafad
1 changed files with 1 additions and 1 deletions

View File

@ -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) {