This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 60661a8  [SYNCOPE-1501] Fixing NullPointerException in explore 
resource (#138)
60661a8 is described below

commit 60661a80fcfb29b803dba82584d20646d2164f7c
Author: Federico Palmitesta <[email protected]>
AuthorDate: Tue Nov 5 17:56:15 2019 +0100

    [SYNCOPE-1501] Fixing NullPointerException in explore resource (#138)
---
 .../apache/syncope/client/console/panels/ConnObjectListViewPanel.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/ConnObjectListViewPanel.java
 
b/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/ConnObjectListViewPanel.java
index 33462a3..193d6b5 100644
--- 
a/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/ConnObjectListViewPanel.java
+++ 
b/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/ConnObjectListViewPanel.java
@@ -306,7 +306,8 @@ public abstract class ConnObjectListViewPanel extends Panel 
{
         clause.setType(SearchClause.Type.ATTRIBUTE);
         clause.setProperty("");
 
-        AnyTypeKind anyTypeKind = 
anyType.equals(SyncopeConstants.REALM_ANYTYPE)
+        AnyTypeKind anyTypeKind =
+                StringUtils.equals(anyType, SyncopeConstants.REALM_ANYTYPE) || 
StringUtils.isEmpty(anyType)
                 ? AnyTypeKind.ANY_OBJECT
                 : AnyTypeRestClient.read(anyType).getKind();
 

Reply via email to