Merge pull request #2137 from abstractj/KEYCLOAK-2411

Realm import will raise NPE when clientID is missing
This commit is contained in:
Bill Burke committed 2016-02-01 16:03:17 -05:00
commit bd104e2138
3 files changed
+77 -2

No files matched your search

@@ -472,7 +472,7 @@ public class RealmManager implements RealmImporter {
private boolean hasClient(RealmRepresentation rep, String clientId) {
if (rep.getClients() != null) {
for (ClientRepresentation clientRep : rep.getClients()) {
if (clientRep.getClientId().equals(clientId)) {
if (clientRep.getClientId() != null && clientRep.getClientId().equals(clientId)) {
return true;
}
}