This is an automated email from the ASF dual-hosted git repository. vladimirsitnikov pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/calcite.git
commit ff169fb9b34e2357566850f8ba4e74b0bfef5755 Author: Vladimir Sitnikov <[email protected]> AuthorDate: Fri Sep 4 22:20:10 2020 +0300 [CALCITE-4228] FlatLists.Flat6List#append should not throw NPE if there are null elements in the list --- core/src/main/java/org/apache/calcite/runtime/FlatLists.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/calcite/runtime/FlatLists.java b/core/src/main/java/org/apache/calcite/runtime/FlatLists.java index c8c7d07..84c4b3b 100644 --- a/core/src/main/java/org/apache/calcite/runtime/FlatLists.java +++ b/core/src/main/java/org/apache/calcite/runtime/FlatLists.java @@ -1244,7 +1244,7 @@ public class FlatLists { } public List<T> append(T e) { - return ImmutableList.of(t0, t1, t2, t3, t5, e); + return ImmutableNullableList.of(t0, t1, t2, t3, t5, e); } }
