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:
Yonik Seeley 2008-07-11 21:12:16 +00:00
parent a62779f12c
commit 5642b95492
1 changed files with 1 additions and 1 deletions

View File

@ -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