Fixed probable PlayerInstance getAllyCrestId method NPE.

This commit is contained in:
MobiusDevelopment
2019-06-05 05:41:36 +00:00
parent 403106efdc
commit 0d4a181380
12 changed files with 12 additions and 60 deletions

View File

@@ -4253,11 +4253,7 @@ public final class PlayerInstance extends Playable
public int getAllyCrestId()
{
if (_clanId == 0)
{
return 0;
}
if (_clan.getAllyId() == 0)
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
{
return 0;
}