Skip to content

Commit

Permalink
Fix Intersmash#37: KeycloakRealmImport status mght be null
Browse files Browse the repository at this point in the history
  • Loading branch information
tommaso-borgato committed May 31, 2023
1 parent ead2eaf commit 9d4e6c3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ public void waitFor(Keycloak keycloak) {
public void waitFor(KeycloakRealmImport realmImport) {
new SimpleWaiter(() -> {
Resource<KeycloakRealmImport> res = keycloakRealmImportClient().withName(realmImport.getMetadata().getName());
if (res != null && res.get() != null) {
if (Objects.nonNull(res)
&& Objects.nonNull(res.get())
&& Objects.nonNull(res.get().getStatus())) {
KeycloakRealmImport imp = res.get();
return imp.getStatus().getConditions().stream().filter(
cond -> cond.getStatus()
Expand Down

0 comments on commit 9d4e6c3

Please sign in to comment.