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
protected boolean isIdempotentOperation() {
if (filters == null) {
return super.isIdempotentOperation();
}
return filters
.stream()
.anyMatch(
filter -> {
if (filter != null) {
HelenusPropertyNode node = filter.getNode();
if (node != null) {
HelenusProperty prop = node.getProperty();
if (prop != null) {
return prop.isIdempotent();
}
HelenusPropertyNode node = filter.getNode();
if (node != null) {
HelenusProperty prop = node.getProperty();
if (prop != null) {
return prop.isIdempotent();
}
}
return false;