Fix for null pointer in core client cleanup
This commit is contained in:
parent
922d269a52
commit
c68bfce21a
@ -233,7 +233,8 @@ public class CoreClientManager implements Listener
|
||||
|
||||
for (Iterator<Entry<String, CoreClient>> clientIterator = _clientList.entrySet().iterator(); clientIterator.hasNext();)
|
||||
{
|
||||
if (!clientIterator.next().getValue().GetPlayer().isOnline())
|
||||
Player clientPlayer = clientIterator.next().getValue().GetPlayer();
|
||||
if (clientPlayer == null || !clientPlayer.isOnline())
|
||||
clientIterator.remove();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user