tests: fix AIOOB if last list element is skipped

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1361517 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2012-07-14 10:25:08 +00:00
parent bf7a69fe16
commit 9875dc69fb
1 changed files with 4 additions and 4 deletions

View File

@ -458,11 +458,11 @@ public abstract class BaseDistributedSearchTestCase extends SolrTestCaseJ4 {
break;
}
String namea, nameb;
Object vala, valb = null;
String namea = null, nameb = null;
Object vala = null, valb = null;
int flagsa, flagsb;
for (; ;) {
int flagsa = 0, flagsb = 0;
while (posa < a.size()) {
namea = a.getName(posa);
vala = a.getVal(posa);
posa++;