Fixed null pointer exception in Player's hashCode function

This commit is contained in:
Obique PSWG
2015-08-08 12:07:34 -05:00
parent 68833935a5
commit c081c824c0
+2
View File
@@ -215,6 +215,8 @@ public class Player implements Serializable, Comparable<Player> {
@Override
public int hashCode() {
if (creatureObject == null)
return getUserId();
return Long.valueOf(creatureObject.getObjectId()).hashCode() ^ getUserId();
}