You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2021/10/21 10:47:31 UTC

[empire-db] branch master updated: EMPIREDB-354 Make sure uiDataTag has a valid index before calling getRowData

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 <do...@apache.org>
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();
             }
         }