UserInfo NPE precaution.
This commit is contained in:
parent
38d932ec9d
commit
0b6b46d213
@ -138,7 +138,7 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
||||
return false;
|
||||
}
|
||||
|
||||
final boolean isProtocol235 = _player.getClient().getProtocolVersion() == 235;
|
||||
final boolean isProtocol235 = (_player.getClient() != null) && (_player.getClient().getProtocolVersion() == 235);
|
||||
|
||||
OutgoingPackets.USER_INFO.writeId(packet);
|
||||
|
||||
|
@ -136,7 +136,7 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
||||
return false;
|
||||
}
|
||||
|
||||
final boolean isProtocol235 = _player.getClient().getProtocolVersion() == 235;
|
||||
final boolean isProtocol235 = (_player.getClient() != null) && (_player.getClient().getProtocolVersion() == 235);
|
||||
|
||||
OutgoingPackets.USER_INFO.writeId(packet);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user