fix PartialImportTest for migration tests

This commit is contained in:
Vlasta Ramik 2017-01-03 10:36:22 +01:00
parent d217b23719
commit 50c11e105b

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();
}
}