You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2020/01/08 08:41:33 UTC
[myfaces-tobago] branch tobago-2.x updated: TOBAGO-2019: NPE
tobago-core-2.4.1 NPE Sorter.java
This is an automated email from the ASF dual-hosted git repository.
lofwyr 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 b243569 TOBAGO-2019: NPE tobago-core-2.4.1 NPE Sorter.java
b243569 is described below
commit b243569b5d3ece9fe49224b37c99bfa626e1fffe
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Wed Oct 23 20:51:29 2019 +0200
TOBAGO-2019: NPE tobago-core-2.4.1 NPE Sorter.java
---
.../src/main/java/org/apache/myfaces/tobago/component/Sorter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java
index f2f0451..35e5b5f 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Sorter.java
@@ -150,7 +150,7 @@ public class Sorter {
// memorize selected rows
List<Object> selectedDataRows = null;
- if (sheetState.getSelectedRows().size() > 0) {
+ if (sheetState.getSelectedRows() != null && sheetState.getSelectedRows().size() > 0) {
selectedDataRows = new ArrayList<Object>(sheetState.getSelectedRows().size());
Object dataRow;
for (final Integer index : sheetState.getSelectedRows()) {