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:
Ryan McKinley 2008-12-09 20:28:33 +00:00
parent f1422bdf67
commit eb695fa5a3
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}