You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2026/03/19 08:31:05 UTC

(myfaces-tobago) branch main updated: fix(sheet): paging NPE

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 653f7d7aec fix(sheet): paging NPE
653f7d7aec is described below

commit 653f7d7aec2f966e8e364d78446142e3dbcd65c8
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Thu Mar 19 09:26:44 2026 +0100

    fix(sheet): paging NPE
    
    Fast clicking on the paging element can cause a NPE.
    
    Issue: TOBAGO-2491
---
 .../myfaces/tobago/internal/renderkit/renderer/PaginatorRenderer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/PaginatorRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/PaginatorRenderer.java
index 88e9959d19..70f0395c11 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/PaginatorRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/PaginatorRenderer.java
@@ -59,7 +59,7 @@ public void decodeInternal(final FacesContext facesContext, final T paginator) {
     }
     if (clientId.equals(sourceId)) {
       final String value = requestParameterMap.get(clientId);
-      if (value != null) {
+      if (value != null && !value.isEmpty()) {
         final AbstractUISheet sheet = paginator.getPageable();
         if (sheet != null) {
           final JsonUtils.SheetActionRecord sheetActionRecord = JsonUtils.decodeSheetAction(value);