1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 18:30:20 +01:00

guard against a null error-condition, c.f. TWK-224

This commit is contained in:
Leo Franchi 2011-06-12 16:43:46 -04:00
parent d4c68ddd27
commit 6ff43b8aed

View File

@ -622,7 +622,8 @@ void JabberPlugin::onNewMessage(const Jreen::Message& message)
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;
}