Sometimes there are no filters.
This commit is contained in:
parent
a63a1be4b6
commit
33d2459538
1 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue