diff --git a/daemon/packageinterfaces/notificationpackageinterface.cpp b/daemon/packageinterfaces/notificationpackageinterface.cpp index 47f4d9f65..c3130fa91 100644 --- a/daemon/packageinterfaces/notificationpackageinterface.cpp +++ b/daemon/packageinterfaces/notificationpackageinterface.cpp @@ -34,15 +34,16 @@ KNotification* NotificationPackageInterface::createNotification(const QString& d if (npType == "ringing") { type = "callReceived"; icon = "call-start"; - content = "Incoming call from " + np.get("phoneNumber"); + QString number = + content = "Incoming call from " + np.get("phoneNumber","unknown number"); } else if (npType == "missedCall") { type = "missedCall"; icon = "call-start"; - content = "Missed call from " + np.get("phoneNumber"); + content = "Missed call from " + np.get("phoneNumber","unknown number"); } else if (npType == "sms") { type = "smsReceived"; icon = "mail-receive"; - content = "SMS received from " + np.get("phoneNumber"); + content = "SMS received from " + np.get("phoneNumber","unknown number"); } else if (npType == "battery") { type = "battery100"; icon = "battery-100";