Fix gql Filter UnsupportedOperationException (#2063)

This commit is contained in:
schroda
2026-05-21 02:15:18 +02:00
committed by GitHub
parent 75fa4b4b23
commit 701e4674ea
2 changed files with 2 additions and 1 deletions

View File

@@ -547,7 +547,7 @@ class OpAnd(
andPart: (T) -> Op<Boolean>,
) {
values ?: return
val expr = values.map { andPart(it) }.reduce { acc, op -> acc or op }
val expr = values.map { andPart(it) }.reduceOrNull { acc, op -> acc or op } ?: return
op = if (op == null) expr else (op!! and expr)
}