From 56b11c5ff35418e9f54537f916c5b07644f087e2 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 9 Aug 2011 18:50:03 +0300 Subject: [PATCH] Scripts: arrays: ".multiValued" returns true even when ".values" fails, closes #1145. --- .../index/mapper/geo/MultiValueGeoPointFieldData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/geo/MultiValueGeoPointFieldData.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/geo/MultiValueGeoPointFieldData.java index 84b6830f70e..3e9b49e88cc 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/geo/MultiValueGeoPointFieldData.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/geo/MultiValueGeoPointFieldData.java @@ -36,7 +36,7 @@ public class MultiValueGeoPointFieldData extends GeoPointFieldData { GeoPoint[][] value = new GeoPoint[VALUE_CACHE_SIZE][]; for (int i = 0; i < value.length; i++) { value[i] = new GeoPoint[i]; - for (int j = 0; j < value.length; j++) { + for (int j = 0; j < value[i].length; j++) { value[i][j] = new GeoPoint(); } }