mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-26 00:40:15 +01:00
Ensure proxiedAddresses is not null before lookup (#4539)
This commit is contained in:
parent
fa441f1c7b
commit
08aa5282d4
1 changed files with 4 additions and 1 deletions
|
@ -263,7 +263,10 @@ public final class GeyserServer {
|
||||||
ip = "<IP address withheld>";
|
ip = "<IP address withheld>";
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectionRequestEvent requestEvent = new ConnectionRequestEvent(inetSocketAddress, this.proxiedAddresses.get(inetSocketAddress));
|
ConnectionRequestEvent requestEvent = new ConnectionRequestEvent(
|
||||||
|
inetSocketAddress,
|
||||||
|
this.proxiedAddresses != null ? this.proxiedAddresses.get(inetSocketAddress) : null
|
||||||
|
);
|
||||||
geyser.eventBus().fire(requestEvent);
|
geyser.eventBus().fire(requestEvent);
|
||||||
if (requestEvent.isCancelled()) {
|
if (requestEvent.isCancelled()) {
|
||||||
geyser.getLogger().debug("Connection request from " + ip + " was cancelled using the API!");
|
geyser.getLogger().debug("Connection request from " + ip + " was cancelled using the API!");
|
||||||
|
|
Loading…
Reference in a new issue