mirror of https://github.com/apache/lucene.git
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:
parent
6bbc03a370
commit
6d5163dd21
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue