mirror of https://github.com/apache/lucene.git
SOLR-625: addField throws exception in SolrDocument
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@676080 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a62779f12c
commit
5642b95492
|
@ -84,7 +84,7 @@ public class SolrDocument implements Serializable, Iterable<Map.Entry<String, Ob
|
|||
public void setField(String name, Object value)
|
||||
{
|
||||
if( value instanceof Object[] ) {
|
||||
value = Arrays.asList( (Object[])value );
|
||||
value = new ArrayList(Arrays.asList( (Object[])value ));
|
||||
}
|
||||
else if( value instanceof Collection ) {
|
||||
// nothing
|
||||
|
|
Loading…
Reference in New Issue