lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r893814 - /lucene/solr/trunk/src/java/org/apache/solr/update/DocumentBuilder.java
Date Thu, 24 Dec 2009 22:14:05 GMT
Author: yonik
Date: Thu Dec 24 22:14:05 2009
New Revision: 893814

URL: http://svn.apache.org/viewvc?rev=893814&view=rev
Log:
SOLR-1131: createFields doesn't return null

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/update/DocumentBuilder.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/update/DocumentBuilder.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/update/DocumentBuilder.java?rev=893814&r1=893813&r2=893814&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/update/DocumentBuilder.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/update/DocumentBuilder.java Thu Dec 24 22:14:05
2009
@@ -59,7 +59,7 @@
     // 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) {



Mime
View raw message