summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2012-04-17 17:56:57 +0000
committerJesse Morgan <jesse@jesterpm.net>2012-04-17 17:56:57 +0000
commit8a4d3f53fba552a5eddafc619729ba4560d48c58 (patch)
treef9d304a10eb834b1201e0de78eda2b39fad88a33 /src/main/java
parent48d08bb552557dac9a923c26a54dd7025318592a (diff)
Fixed NullPointerException when using ExistsFilter
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/amazon/carbonado/qe/FilteringScore.java7
1 files changed, 7 insertions, 0 deletions
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<S extends Storable> {
return filter.getLeftFilter().accept(this, param)
&& filter.getRightFilter().accept(this, param);
}
+
+ @Override
+ public Boolean visit(ExistsFilter<S> filter, Object param) {
+ // Assume that an ExistsFilter is not going to be indexed.
+ return false;
+ }
@Override
public Boolean visit(PropertyFilter<S> filter, Object param) {