Merge pull request #3701 from vramik/KEYCLOAK-4145

KEYCLOAK-4145 fix PartialImportTest for migration tests
This commit is contained in:
Pavel Drozd 2017-01-05 10:58:51 +01:00 committed by GitHub
commit 77293b85e0

View file

@ -133,7 +133,7 @@ public class PartialImportTest extends AbstractAuthTest {
public void removeClients() {
List<ClientRepresentation> toRemove = testRealmResource().clients().findAll();
for (ClientRepresentation client : toRemove) {
if (client.getName().startsWith(CLIENT_PREFIX)) {
if (client.getName() != null && client.getName().startsWith(CLIENT_PREFIX)) {
testRealmResource().clients().get(client.getId()).remove();
}
}