mirror of https://github.com/apache/lucene.git
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:
parent
88b6768a97
commit
a973bfafad
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue