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,17 +111,19 @@ 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(); if (prop != null) {
if (prop != null) { return prop.isIdempotent();
return prop.isIdempotent();
}
} }
} }
return false; return false;