mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
be prepared for indexing stub number 0
This commit is contained in:
@@ -124,7 +124,7 @@ public class ObjectStubTree<T extends Stub> {
|
||||
} else {
|
||||
int lastZero;
|
||||
for(lastZero = list.length - 1; lastZero >=0 && list[lastZero] == 0; --lastZero);
|
||||
if (list[lastZero] == myStubIdx) {
|
||||
if (lastZero >= 0 && list[lastZero] == myStubIdx) {
|
||||
// second and subsequent occurrence calls for the same value are no op
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user