mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-17 07:02:54 -04:00
Fixed null pointer exception in Player's hashCode function
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user