Fix for null pointer in core client cleanup

This commit is contained in:
Jonathan Williams 2013-10-14 12:20:49 -07:00
parent 922d269a52
commit c68bfce21a

View File

@ -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();
}
}