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;
}

View File

@ -4259,11 +4259,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;
}

View File

@ -4261,11 +4261,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;
}

View File

@ -4252,11 +4252,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;
}

View File

@ -4232,11 +4232,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;
}

View File

@ -4232,11 +4232,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;
}

View File

@ -4233,11 +4233,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;
}

View File

@ -4228,11 +4228,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;
}

View File

@ -4229,11 +4229,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;
}

View File

@ -4212,11 +4212,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;
}

View File

@ -4212,11 +4212,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;
}

View File

@ -4212,11 +4212,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;
}