mirror of https://github.com/apache/lucene.git
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:
parent
bf7a69fe16
commit
9875dc69fb
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue