lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r819403 - in /lucene/solr/trunk: CHANGES.txt src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java
Date Sun, 27 Sep 2009 21:03:03 GMT
Author: yonik
Date: Sun Sep 27 21:03:02 2009
New Revision: 819403

URL: http://svn.apache.org/viewvc?rev=819403&view=rev
Log:
SOLR-1468: allow null names in NamedList

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=819403&r1=819402&r2=819403&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Sun Sep 27 21:03:02 2009
@@ -578,6 +578,9 @@
 
 67. SOLR-1427: Fixed registry.jsp issue with MBeans (gsingers) 
 
+68. SOLR-1468: SolrJ's XML response parsing threw an exception for null
+     names, such as those produced when facet.missing=true (yonik)
+
 Other Changes
 ----------------------
  1. Upgraded to Lucene 2.4.0 (yonik)

Modified: lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java?rev=819403&r1=819402&r2=819403&view=diff
==============================================================================
--- lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java (original)
+++ lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java Sun
Sep 27 21:03:02 2009
@@ -227,10 +227,12 @@
             break;
           }
         }
-        
+
+        /** The name in a NamedList can actually be null
         if( name == null ) {
           throw new XMLStreamException( "requires 'name' attribute: "+parser.getLocalName(),
parser.getLocation() );
         }
+        **/
         
         if( !type.isLeaf ) {
           switch( type ) {



Mime
View raw message