SOLR-1468: allow null names in NamedList

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@819403 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-09-27 21:03:02 +00:00
parent 9c04080ad1
commit 250924d72e
2 changed files with 6 additions and 1 deletions

View File

@ -578,6 +578,9 @@ Bug Fixes
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)

View File

@ -228,9 +228,11 @@ public class XMLResponseParser extends ResponseParser
}
}
/** 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 ) {