Skip to content

Commit

Permalink
Merge pull request #91
Browse files Browse the repository at this point in the history
Fix NPE
  • Loading branch information
chenzhiguo authored Oct 14, 2024
2 parents 3dd47dd + 1fe022f commit d6e1410
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public AuthResult authenticate(ServiceRequest request, AuthPolicy policy) {
if (request instanceof HttpRequest) {
requestToken = ((HttpRequest) request).getHeader(tokenKey);
if (tokenKey.equals(KEY_AUTH)) {
if (requestToken.startsWith(BASIC_PREFIX)) {
if (requestToken != null && requestToken.startsWith(BASIC_PREFIX)) {
requestToken = getBasicPassword(requestToken);
}
}
Expand Down

0 comments on commit d6e1410

Please sign in to comment.