diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 367152ee1..258dca82f 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -190,7 +190,8 @@ NotificationDaemon.prototype = { let busProxy = new Bus(); busProxy.GetConnectionUnixProcessIDRemote(sender, function (result, excp) { let app = Shell.WindowTracker.get_default().get_app_from_pid(result); - source.setApp(app); + if (app) + source.setApp(app); }); } else { source.update(icon, hints);