Skip to content

Commit

Permalink
check for callback not null
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
  • Loading branch information
matzew committed Nov 6, 2024
1 parent 26b2628 commit ba67f3e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ public OIDCDiscoveryConfigListener(String featuresConfigPath, Vertx vertx, int t
this.buildFeaturesAndOIDCDiscoveryConfig();
OIDCDiscoveryConfig config = this.oidcDiscoveryConfig.get();
if (config != null) {
this.callbacks.forEach(callback -> callback.accept(config));
this.callbacks.forEach(callback -> {
if (callback != null) {
callback.accept(config);
}
});
}
}
});
Expand Down

0 comments on commit ba67f3e

Please sign in to comment.