- added null pointer check

This commit is contained in:
Mark Vejvoda 2010-08-20 20:29:30 +00:00
parent a6d33fe569
commit fc31e7713d

View File

@ -262,7 +262,7 @@ void ConnectionSlot::update(bool checkForNewClients) {
this->clearChatInfo();
bool gotTextMsg = true;
for(;socket->hasDataToRead() == true && gotTextMsg == true;) {
for(;socket != NULL && socket->hasDataToRead() == true && gotTextMsg == true;) {
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] polling for networkMessageType...\n",__FILE__,__FUNCTION__,__LINE__);
NetworkMessageType networkMessageType= getNextMessageType(true);