summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp3
1 files changed, 3 insertions, 0 deletions
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;