Fixed probable hardware info holder NPE.
This commit is contained in:
parent
d5387bb853
commit
a261be39a8
@ -695,11 +695,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -733,11 +733,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -733,11 +733,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -733,11 +733,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -739,11 +739,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -739,11 +739,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -739,11 +739,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -745,11 +745,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -762,11 +762,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -772,11 +772,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -772,11 +772,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -694,11 +694,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -693,11 +693,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -720,11 +720,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -720,11 +720,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -730,11 +730,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -730,11 +730,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -730,11 +730,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -734,11 +734,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -716,11 +716,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -768,11 +768,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -782,11 +782,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
@ -782,11 +782,15 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
int count = 0;
|
||||
for (PlayerInstance plr : World.getInstance().getPlayers())
|
||||
{
|
||||
if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo)))
|
||||
if (plr.isOnlineInt() == 1)
|
||||
{
|
||||
final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo();
|
||||
if ((hwi != null) && hwi.equals(hwInfo))
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(false);
|
||||
|
Loading…
Reference in New Issue
Block a user