Fixed probable PlayerInstance getAllyCrestId method NPE.
This commit is contained in:
parent
403106efdc
commit
0d4a181380
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user