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 2020/12/11 07:54:32 UTC
[myfaces-tobago] 17/22: fix NPE after TOBAGO-703 - sheet paging
should adjust scroll position
This is an automated email from the ASF dual-hosted git repository.
weber pushed a commit to branch TOBAGO-1999_Select2
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 87eb52e25c669de0944d3b2f0391dc7e948ba0aa
Author: Volker Weber <v....@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: