Skip to content

Commit

Permalink
chore(lnurl-auth): add null check for UserDetailsChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Jan 29, 2024
1 parent e3fcc7a commit 7397e82
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import org.springframework.util.Assert;
import org.tbk.lnurl.auth.LinkingKey;

import static java.util.Objects.requireNonNull;

/**
* Best parts copied from {@link AbstractUserDetailsAuthenticationProvider}
* and applied to lnurl-auth token authentication.
Expand Down Expand Up @@ -46,6 +48,6 @@ protected UserDetailsChecker getAuthenticationChecks() {
}

public void setAuthenticationChecks(UserDetailsChecker authenticationChecks) {
this.authenticationChecks = authenticationChecks;
this.authenticationChecks = requireNonNull(authenticationChecks);
}
}

0 comments on commit 7397e82

Please sign in to comment.