mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
guard against a null error-condition, c.f. TWK-224
This commit is contained in:
@@ -622,7 +622,8 @@ void JabberPlugin::onNewMessage(const Jreen::Message& message)
|
|||||||
|
|
||||||
if( message.subtype() == Jreen::Message::Error )
|
if( message.subtype() == Jreen::Message::Error )
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << "Received error message from " << from << ", not answering... (Condition: " << message.error()->condition() << ")";
|
qDebug() << Q_FUNC_INFO << "Received error message from " << from << ", not answering... (Condition: "
|
||||||
|
<< ( message.error().isNull() ? -1 : message.error()->condition() ) << ")";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user