You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2025/07/02 14:56:54 UTC

(myfaces-tobago) branch tobago-2.x updated: TOBAGO-2429 Tobago 2.5: Exception rendering empty sheet

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

weber pushed a commit to branch tobago-2.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-2.x by this push:
     new 1d66dd53de TOBAGO-2429 Tobago 2.5: Exception rendering empty sheet
1d66dd53de is described below

commit 1d66dd53de14b8b0cf2e179fb2e5bfb25bfcee5b
Author: Volker Weber <v....@inexso.de>
AuthorDate: Wed Jul 2 16:56:11 2025 +0200

    TOBAGO-2429 Tobago 2.5: Exception rendering empty sheet
---
 .../tobago/renderkit/html/standard/standard/tag/SheetRenderer.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java b/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java
index 54905c57f4..9d35c2dc35 100644
--- a/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java
+++ b/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java
@@ -267,7 +267,7 @@ private void renderSheet(
       tableBodyWidth = tableBodyWidth.subtractNotNegative(getVerticalScrollbarWeight(facesContext, sheet));
     }
     List<Integer> dataWidths = null;
-    if (columnWidths != null) {
+    if (columnWidths != null && !columnWidths.isEmpty()) {
       dataWidths = new ArrayList<Integer>(columnWidths);
       int usedWidth = 0;
       for (int i = 0, dataWidthsSize = dataWidths.size(); i < dataWidthsSize - 1; i++) {