You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2024/10/28 14:57:57 UTC

(causeway) 01/01: CAUSEWAY-3825: empty TabularCell initialization fix

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch 3825-tabular.api
in repository https://gitbox.apache.org/repos/asf/causeway.git

commit 4d66f916f31450624d0b933c1b005ccb3b52c3ba
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Oct 28 15:57:50 2024 +0100

    CAUSEWAY-3825: empty TabularCell initialization fix
---
 .../src/main/java/org/apache/causeway/commons/tabular/TabularModel.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons/src/main/java/org/apache/causeway/commons/tabular/TabularModel.java b/commons/src/main/java/org/apache/causeway/commons/tabular/TabularModel.java
index 420a3cfd235..cfd2a3d809e 100644
--- a/commons/src/main/java/org/apache/causeway/commons/tabular/TabularModel.java
+++ b/commons/src/main/java/org/apache/causeway/commons/tabular/TabularModel.java
@@ -76,7 +76,7 @@ public record TabularModel(
 
         // -- FACTORIES
 
-        private static TabularCell EMPTY = new TabularCell(0, Either.right(null));
+        private static TabularCell EMPTY = new TabularCell(0, Either.right(Stream::empty));
         public static TabularCell empty() { return EMPTY; }
 
         public static TabularCell single(@Nullable final Object value) {