SOLR-1077 -- IndexOutOfBoundsException with useSolrAddSchema in XPathEntityProcessor

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@756684 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-03-20 17:47:14 +00:00
parent 6bbc03a370
commit 6d5163dd21
2 changed files with 4 additions and 1 deletions

View File

@ -192,6 +192,9 @@ Bug Fixes
multiple of 1024 bytes.
(Herb Jiang via shalin)
23.SOLR-1077: IndexOutOfBoundsException with useSolrAddSchema in XPathEntityProcessor.
(Sam Keen, Noble Paul via shalin)
Documentation
----------------------

View File

@ -312,7 +312,7 @@ public class XPathEntityProcessor extends EntityProcessorBase {
List<String> names = (List<String>) record.get("name");
List<String> values = (List<String>) record.get("value");
Map<String, Object> row = new HashMap<String, Object>();
for (int i = 0; i < names.size(); i++) {
for (int i = 0; i < names.size() && i < values.size(); i++) {
if (row.containsKey(names.get(i))) {
Object existing = row.get(names.get(i));
if (existing instanceof List) {