Skip to content

Commit

Permalink
Merge pull request #2607 from kumardeepak5/21260-fix
Browse files Browse the repository at this point in the history
Handle Null Pointer Exception while trying to delete already deleted Authorized API
  • Loading branch information
AnuradhaSK authored Nov 4, 2024
2 parents a6d3610 + be3c0bb commit 6d1c27c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void handleEvent(Event event) throws IdentityEventException {
AuthorizedAPI authorizedAPI = OAuthComponentServiceHolder.getInstance()
.getAuthorizedAPIManagementService()
.getAuthorizedAPI(appId, apiId, tenantDomain);
if (authorizedAPI.getScopes() == null) {
if (authorizedAPI == null || authorizedAPI.getScopes() == null) {
return;
}
List<String> removedScopes = authorizedAPI.getScopes().stream()
Expand Down

0 comments on commit 6d1c27c

Please sign in to comment.