Fix NPE while rendering resident IDP UI when conectors are not available
@@ -59,7 +59,7 @@ public class IdentityGovernanceAdminClient {
ConnectorConfig[] configs = stub.getConnectorList();
Map<String, Map<String, List<ConnectorConfig>>> catMap = new HashMap<String, Map<String, List<ConnectorConfig>>>();
-
+ if (configs != null) {
for (ConnectorConfig conf : configs) {
String categoryName = StringUtils.isBlank(conf.getCategory()) ? DEFAULT : conf.getCategory();
String subCategoryName = StringUtils.isBlank(conf.getSubCategory()) ? DEFAULT : conf.getSubCategory();
@@ -81,6 +81,7 @@ public class IdentityGovernanceAdminClient {
subCatMap.put(subCategoryName, confList);
}
}
+ }
return catMap;
}
