Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #927 from zalando/ARUHA-1681-fixnpe
Browse files Browse the repository at this point in the history
ARUHA-1681 Fix npe while committing cursors
  • Loading branch information
antban authored Aug 2, 2018
2 parents 95210fd + fa00c6a commit 53df492
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ public void authorizeSubscriptionRead(final Subscription subscription) throws Ac
}

public void authorizeSubscriptionCommit(final Subscription subscription) throws AccessDeniedException {
if (null == subscription.getAuthorization()) {
return;
}
final Resource resource = subscription.asResource();
try {
if (!authorizationService.isAuthorized(AuthorizationService.Operation.READ, resource)
Expand Down

0 comments on commit 53df492

Please sign in to comment.