Fix for issue #2202 (NPE in unregister-server when no server group membership)
| | |
| | | throw new ADSContextException (ErrorType.NOT_YET_REGISTERED) ; |
| | | } |
| | | Set groupList = (Set) serverProperties.get(ServerProperty.GROUPS); |
| | | for (Object groupId : groupList.toArray()) |
| | | if (groupList != null) |
| | | { |
| | | DsFrameworkCliServerGroup.removeServerFromGroup(adsCtx, |
| | | (String) groupId, serverId); |
| | | for (Object groupId : groupList.toArray()) |
| | | { |
| | | DsFrameworkCliServerGroup.removeServerFromGroup(adsCtx, |
| | | (String) groupId, serverId); |
| | | } |
| | | } |
| | | |
| | | // unregister the server |