Compare commits

...

1 commit

Author SHA1 Message Date
Kai Uwe Broulik
168c7f50ed Check for null notification
When starting a phone call on the phone, we enter "talking" state without having
created a notification first leading to a crash.
2020-03-31 10:22:39 +02:00

View file

@ -55,7 +55,9 @@ void TelephonyPlugin::createNotification(const NetworkPacket& np)
icon = QStringLiteral("call-start");
content = i18n("Missed call from %1", contactName);
} else if (event == QLatin1String("talking")) {
m_currentCallNotification->close();
if (m_currentCallNotification) {
m_currentCallNotification->close();
}
return;
}