1
0
forked from 0ad/0ad

Don't crash while in the lobby when receiving an error IQ stanza without an error payload, refs d7121f4f55.

Differential Revision: https://code.wildfiregames.com/D1222
Patch By: Dunedan
This was SVN commit r20868.
This commit is contained in:
elexis 2018-01-14 17:48:24 +00:00
parent e132c26a0f
commit 8ede017904

View File

@ -468,7 +468,10 @@ const glooxwrapper::StanzaExtension* glooxwrapper::IQ::findExtension(int type) c
gloox::StanzaError glooxwrapper::IQ::error_error() const
{
return m_Wrapped->error()->error();
const gloox::Error* error = m_Wrapped->error();
if (!error)
return gloox::StanzaErrorInternalServerError;
return error->error();
}
glooxwrapper::Tag* glooxwrapper::IQ::tag() const