On my system the notification is null

It may be a bug, but we better not crash anyway
This commit is contained in:
Aleix Pol 2018-01-30 17:43:58 +01:00
parent 83158aac7a
commit 6495e8dc53

View file

@ -91,8 +91,11 @@ void NotificationsDbusInterface::processPackage(const NetworkPackage& np)
});
}
} else {
QString pubId = m_internalIdToPublicId[id];
Notification* noti = m_notifications[pubId];
QString pubId = m_internalIdToPublicId.value(id);
Notification* noti = m_notifications.value(pubId);
if (!noti)
return;
noti->update(np);
if (noti->isReady()) {