From 9d521a19be347703bfdbb7802d0397a59c3edd7a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Jun 2015 14:55:44 +0300 Subject: Add missing checks in windows. --- src/gui/windows/socialwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/windows/socialwindow.cpp') diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index f9827c35a..2353f98e8 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -183,6 +183,9 @@ SocialWindow::~SocialWindow() bool SocialWindow::addTab(Guild *const guild) { + if (!guild) + return false; + if (mGuilds.find(guild) != mGuilds.end()) return false; -- cgit v1.2.3-70-g09d2