diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/partialimport/PartialImportTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/partialimport/PartialImportTest.java index e6f73480a9..6125ab3eb5 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/partialimport/PartialImportTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/partialimport/PartialImportTest.java @@ -133,7 +133,7 @@ public class PartialImportTest extends AbstractAuthTest { public void removeClients() { List 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(); } }