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