Fixed probable PlayerInstance getAllyCrestId method NPE.
This commit is contained in:
+1
-5
@@ -4253,11 +4253,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4259,11 +4259,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4261,11 +4261,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4252,11 +4252,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4232,11 +4232,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4232,11 +4232,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4233,11 +4233,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4228,11 +4228,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4229,11 +4229,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4212,11 +4212,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4212,11 +4212,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -4212,11 +4212,7 @@ public final class PlayerInstance extends Playable
|
|||||||
|
|
||||||
public int getAllyCrestId()
|
public int getAllyCrestId()
|
||||||
{
|
{
|
||||||
if (_clanId == 0)
|
if ((_clanId == 0) || (_clan == null) || (_clan.getAllyId() == 0))
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (_clan.getAllyId() == 0)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user