From a28d5f35d9a03e4f0c644f981fa8011590820c93 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 3 Apr 2019 16:25:57 -0700 Subject: [PATCH] Fix geo points missing test (#40704) This commit initializes the geo points for the missing doc values test. fixes #40684 --- .../index/fielddata/ScriptDocValuesGeoPointsTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/test/java/org/elasticsearch/index/fielddata/ScriptDocValuesGeoPointsTests.java b/server/src/test/java/org/elasticsearch/index/fielddata/ScriptDocValuesGeoPointsTests.java index 085b43a686b..6c199fefbe3 100644 --- a/server/src/test/java/org/elasticsearch/index/fielddata/ScriptDocValuesGeoPointsTests.java +++ b/server/src/test/java/org/elasticsearch/index/fielddata/ScriptDocValuesGeoPointsTests.java @@ -118,6 +118,9 @@ public class ScriptDocValuesGeoPointsTests extends ESTestCase { GeoPoint[][] points = new GeoPoint[between(3, 10)][]; for (int d = 0; d < points.length; d++) { points[d] = new GeoPoint[randomBoolean() ? 0 : between(1, 10)]; + for (int i = 0; i< points[d].length; i++) { + points[d][i] = new GeoPoint(randomLat(), randomLon()); + } } final ScriptDocValues.GeoPoints geoPoints = new GeoPoints(wrap(points)); for (int d = 0; d < points.length; d++) {