Sometimes there are no filters.

This commit is contained in:
Greg Burd 2017-11-13 11:01:30 -05:00
parent a63a1be4b6
commit 33d2459538

View file

@ -111,11 +111,14 @@ public abstract class AbstractFilterOperation<E, O extends AbstractFilterOperati
@Override @Override
protected boolean isIdempotentOperation() { protected boolean isIdempotentOperation() {
if (filters == null) {
return super.isIdempotentOperation();
}
return filters return filters
.stream() .stream()
.anyMatch( .anyMatch(
filter -> { filter -> {
if (filter != null) {
HelenusPropertyNode node = filter.getNode(); HelenusPropertyNode node = filter.getNode();
if (node != null) { if (node != null) {
HelenusProperty prop = node.getProperty(); HelenusProperty prop = node.getProperty();
@ -123,7 +126,6 @@ public abstract class AbstractFilterOperation<E, O extends AbstractFilterOperati
return prop.isIdempotent(); return prop.isIdempotent();
} }
} }
}
return false; return false;
}) })
|| super.isIdempotentOperation(); || super.isIdempotentOperation();