[FIX] Исправлен возможный NPE в AuthResponse

This commit is contained in:
Gravit 2019-04-29 15:56:19 +07:00
parent 43c44446d9
commit 72ce4234a3
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -60,7 +60,7 @@ public void execute(ChannelHandlerContext ctx, Client clientData) throws Excepti
try { try {
AuthRequestEvent result = new AuthRequestEvent(); AuthRequestEvent result = new AuthRequestEvent();
String ip = IOHelper.getIP(ctx.channel().remoteAddress()); String ip = IOHelper.getIP(ctx.channel().remoteAddress());
if ((authType == null || authType == ConnectTypes.CLIENT) && !clientData.checkSign) { if ((authType == null || authType == ConnectTypes.CLIENT) && ( clientData == null || !clientData.checkSign )) {
AuthProvider.authError("Don't skip Launcher Update"); AuthProvider.authError("Don't skip Launcher Update");
return; return;
} }