Adding null check for multi valued fields

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@735696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-01-19 14:17:58 +00:00
parent afe37144ea
commit ccb41af767
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ public class HTMLStripTransformer extends Transformer {
List<String> inputs = (List<String>) tmpVal;
List results = new ArrayList();
for (String input : inputs) {
if (input == null)
continue;
Object o = stripHTML(input, col);
if (o != null)
results.add(o);