diff --git a/client/src/com/aerospike/client/query/Filter.java b/client/src/com/aerospike/client/query/Filter.java index 77e7da056..df1ff4274 100644 --- a/client/src/com/aerospike/client/query/Filter.java +++ b/client/src/com/aerospike/client/query/Filter.java @@ -435,7 +435,8 @@ public static Filter geoWithinRegion(Expression exp, IndexCollectionType type, S * @return filter instance */ public static Filter geoWithinRegionByIndex(String indexName, IndexCollectionType type, String region) { - return new Filter(indexName, null, type, ParticleType.GEOJSON, Value.get(region), Value.get(region)); + Value v = Value.get(region); + return new Filter(indexName, null, type, ParticleType.GEOJSON, v, v); } /**