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:
parent
e132c26a0f
commit
8ede017904
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user