diff --git a/planetiler-core/src/main/java/com/onthegomap/planetiler/expression/MultiExpression.java b/planetiler-core/src/main/java/com/onthegomap/planetiler/expression/MultiExpression.java index 484c569333..d1e86d944c 100644 --- a/planetiler-core/src/main/java/com/onthegomap/planetiler/expression/MultiExpression.java +++ b/planetiler-core/src/main/java/com/onthegomap/planetiler/expression/MultiExpression.java @@ -148,6 +148,7 @@ public MultiExpression mapResults(Function fn) { return new MultiExpression<>( expressions.stream() .map(entry -> entry(fn.apply(entry.result), entry.expression)) + .filter(entry -> entry.result != null) .toList() ); }