LUCENE-7201: Handle illegal rectangles during testing.

This commit is contained in:
Karl Wright 2016-04-11 12:55:21 -04:00
parent 05dc90215a
commit 83bde55865
1 changed files with 5 additions and 1 deletions

View File

@ -560,7 +560,11 @@ public class TestGeo3DPoint extends LuceneTestCase {
case 2: {
// Rectangles
final Rectangle r = GeoTestUtil.nextBox();
return Geo3DPoint.newBoxQuery(field, r.minLat, r.maxLat, r.minLon, r.maxLon);
try {
return Geo3DPoint.newBoxQuery(field, r.minLat, r.maxLat, r.minLon, r.maxLon);
} catch (IllegalArgumentException e) {
continue;
}
}
case 3: {