mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-23 16:59:33 +00:00
Ensure proxiedAddresses is not null before lookup (#4539)
This commit is contained in:
@@ -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!");
|
||||||
|
|||||||
Reference in New Issue
Block a user