diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java index 9ec0e30661f..20302b40864 100644 --- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java +++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java @@ -1248,7 +1248,7 @@ public class TestGeo3DPoint extends LuceneTestCase { if (firstPhase) { // Pop stack: - while (stack.size() > 0 && stack.get(stack.size()-1).contains(cell)) { + while (stack.size() > 0 && stack.get(stack.size()-1).contains(cell) == false) { stack.remove(stack.size()-1); //System.out.println(" pop"); }