You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/11/05 16:57:14 UTC
[syncope] branch master updated: [SYNCOPE-1501] Fixing
NullPointerException in explore resource (#138)
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 <fe...@gmail.com>
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();