Skip to content

Commit

Permalink
fix of NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jul 9, 2021
1 parent 9ea370f commit 0d9a9bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ protected void decideInternal(MidPointPrincipal principal, List<String> required
}

private boolean isPermitAll(FilterInvocation filterInvocation) {
if (filterInvocation.getResponse().isCommitted()
if (filterInvocation.getResponse() != null && filterInvocation.getResponse().isCommitted()
&& new AntPathRequestMatcher(authUrl).matches(filterInvocation.getRequest())) {
return true;
}
Expand Down

0 comments on commit 0d9a9bc

Please sign in to comment.