This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new bb22c7e EMPIREDB-354 Make sure uiDataTag has a valid index before
calling getRowData
bb22c7e is described below
commit bb22c7ec0e5fd06cd811c1d43152bbd33799a376
Author: Rainer Döbele <[email protected]>
AuthorDate: Thu Oct 21 12:47:29 2021 +0200
EMPIREDB-354
Make sure uiDataTag has a valid index before calling getRowData
---
.../src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
index 799a1c9..036aa7a 100644
---
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
+++
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
@@ -673,6 +673,8 @@ public class TagEncodingHelper implements NamingContainer
{
this.uiDataTag = (UIData)parent;
this.insideUIData = true;
+ if (this.uiDataTag.getRowIndex()<0)
+ return null; // No Row selected
return this.uiDataTag.getRowData();
}
}