From ff10b54405fe8980a022e98cd79d912c1f0ac353 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Feb 2016 02:12:14 +0300 Subject: Add missing checks. --- src/gui/windows/socialwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/windows/socialwindow.cpp') diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index fe8aaacbf..63a88c06f 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -352,6 +352,9 @@ void SocialWindow::action(const ActionEvent &event) if (!serverFeatures->haveNativeGuilds()) return; + if (!mGuildCreateDialog) + return; + std::string name = mGuildCreateDialog->getText(); if (name.size() > 16) @@ -374,6 +377,9 @@ void SocialWindow::action(const ActionEvent &event) } else if (eventId == "create party") { + if (!mPartyCreateDialog) + return; + std::string name = mPartyCreateDialog->getText(); if (name.size() > 24) -- cgit v1.2.3-60-g2f50