Skip to content

Commit

Permalink
fix of NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jun 29, 2021
1 parent 75452bc commit f33edcf
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 f33edcf

Please sign in to comment.