[fix](Neredis) Fix npe when plan node doesn't have expressions in materialized view (#31579)
This commit is contained in:
@ -114,7 +114,7 @@ public class StructInfoNode extends AbstractNode {
|
||||
* get all expressions of nodes
|
||||
*/
|
||||
public @Nullable List<Expression> getExpressions() {
|
||||
return expressions.stream()
|
||||
return expressions == null ? null : expressions.stream()
|
||||
.flatMap(Collection::stream)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user