mirror of https://github.com/apache/lucene.git
avoid null pointer while when you add a null value
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@724869 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f1422bdf67
commit
eb695fa5a3
|
@ -111,7 +111,7 @@ public class ClientUtils
|
|||
if( boost != 1.0f ) {
|
||||
XML.writeXML(writer, "field", v.toString(), "name", name, "boost", boost );
|
||||
}
|
||||
else {
|
||||
else if (v != null) {
|
||||
XML.writeXML(writer, "field", v.toString(), "name", name );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue