Fix NPE when checking an access token's locked ips
This commit is contained in:
parent
a99d10c002
commit
5de25c498b
@ -38,7 +38,7 @@ public final class ActorAttributeHandler implements Handler<RoutingContext> {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!accessToken.getLockedIps().isEmpty()) {
|
||||
if (accessToken.getLockedIps() != null && !accessToken.getLockedIps().isEmpty()) {
|
||||
boolean allowed = accessToken.getLockedIps().contains(ctx.request().remoteAddress().host());
|
||||
|
||||
if (!allowed) {
|
||||
|
Loading…
Reference in New Issue
Block a user