fixing null pointer exception during client creation
This commit is contained in:
+2
-1
@@ -581,6 +581,7 @@ public class ClientWritePlatformServiceJpaRepositoryImpl implements ClientWriteP
|
|||||||
private void validateParentGroupRulesBeforeClientActivation(Client client) {
|
private void validateParentGroupRulesBeforeClientActivation(Client client) {
|
||||||
Integer minNumberOfClients = configurationDomainService.retrieveMinAllowedClientsInGroup();
|
Integer minNumberOfClients = configurationDomainService.retrieveMinAllowedClientsInGroup();
|
||||||
Integer maxNumberOfClients = configurationDomainService.retrieveMaxAllowedClientsInGroup();
|
Integer maxNumberOfClients = configurationDomainService.retrieveMaxAllowedClientsInGroup();
|
||||||
|
if (client.getGroups() != null) {
|
||||||
for (Group group : client.getGroups()) {
|
for (Group group : client.getGroups()) {
|
||||||
/**
|
/**
|
||||||
* Since this Client has not yet been associated with the group,
|
* Since this Client has not yet been associated with the group,
|
||||||
@@ -591,5 +592,5 @@ public class ClientWritePlatformServiceJpaRepositoryImpl implements ClientWriteP
|
|||||||
maxNumberOfClients); }
|
maxNumberOfClients); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user