myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject [myfaces-tobago] branch tobago-2.x updated: fix NPE after TOBAGO-703 - sheet paging should adjust scroll position
Date Wed, 07 Oct 2020 07:45:36 GMT
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 3e58436  fix NPE after TOBAGO-703 - sheet paging should adjust scroll position
3e58436 is described below

commit 3e58436de4719d3929af3eeca32d0606e7a0b220
Author: Volker Weber <v.weber@inexso.de>
AuthorDate: Wed Oct 7 09:45:30 2020 +0200

    fix NPE after TOBAGO-703 - sheet paging should adjust scroll position
---
 .../org/apache/myfaces/tobago/internal/component/AbstractUISheet.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
index 10cbd40..9a2291d 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
@@ -541,6 +541,9 @@ public abstract class AbstractUISheet extends AbstractUIData
     }
 
     Integer[] scrollPosition = getScrollPosition();
+    if (scrollPosition == null) {
+      scrollPosition = new Integer[] {0, 0};
+    }
     scrollPosition[1] = 0;
     switch (pageEvent.getAction()) {
       case FIRST:


Mime
View raw message