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 18:18:07 UTC
[syncope] branch 2_1_X 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 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new 806118a [SYNCOPE-1501] Fixing NullPointerException in explore resource (#138)
806118a is described below
commit 806118ada40c36d3674a90905afe25d88d9a0e13
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/console/src/main/java/org/apache/syncope/client/console/panels/ConnObjectListViewPanel.java b/client/console/src/main/java/org/apache/syncope/client/console/panels/ConnObjectListViewPanel.java
index 9bb3372..8bb7d72 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/panels/ConnObjectListViewPanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/panels/ConnObjectListViewPanel.java
@@ -307,7 +307,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();