1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2026-01-04 15:31:48 +00:00

Don't assume that BedrockData can't be null

This commit is contained in:
Tim203
2022-01-20 19:34:14 +01:00
parent a3e6c09166
commit 763ede8817

View File

@@ -37,6 +37,12 @@ public class SpigotHandshakeHandler implements HandshakeHandler {
@Override
public void handle(HandshakeData data) {
// we never have to do anything when BedrockData is null.
// BedrockData is null when something went wrong (e.g. invalid key / exception)
if (data.getBedrockData() == null) {
return;
}
BedrockData bedrockData = data.getBedrockData();
UUID correctUuid = data.getCorrectUniqueId();