From 8a4d3f53fba552a5eddafc619729ba4560d48c58 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 17 Apr 2012 17:56:57 +0000 Subject: Fixed NullPointerException when using ExistsFilter --- src/main/java/com/amazon/carbonado/qe/FilteringScore.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/amazon/carbonado/qe/FilteringScore.java b/src/main/java/com/amazon/carbonado/qe/FilteringScore.java index 5c26d5d..5b76a6d 100644 --- a/src/main/java/com/amazon/carbonado/qe/FilteringScore.java +++ b/src/main/java/com/amazon/carbonado/qe/FilteringScore.java @@ -28,6 +28,7 @@ import java.util.List; import com.amazon.carbonado.Storable; import com.amazon.carbonado.filter.AndFilter; +import com.amazon.carbonado.filter.ExistsFilter; import com.amazon.carbonado.filter.Filter; import com.amazon.carbonado.filter.OrFilter; import com.amazon.carbonado.filter.PropertyFilter; @@ -779,6 +780,12 @@ public class FilteringScore { return filter.getLeftFilter().accept(this, param) && filter.getRightFilter().accept(this, param); } + + @Override + public Boolean visit(ExistsFilter filter, Object param) { + // Assume that an ExistsFilter is not going to be indexed. + return false; + } @Override public Boolean visit(PropertyFilter filter, Object param) { -- cgit v1.2.3