From 4f00e33aae207561fc0b34ee7d181d7a74755fd5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Aug 2014 13:37:08 +0300 Subject: Add missing check. --- src/net/ea/partyhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index d1e682e43..9356e2272 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -103,7 +103,8 @@ void PartyHandler::processPartyInfo(Net::MessageIn &msg) const if ((*it)->getOnline()) onlineNames.insert((*it)->getName()); } - onlineNames.insert(localPlayer->getName()); + if (localPlayer) + onlineNames.insert(localPlayer->getName()); } } -- cgit v1.2.3-70-g09d2