notificationDaemon: Avoid access to undefined property
Avoid a warning when assigning from an undefined property by making sure to pass a proper null value instead. https://bugzilla.gnome.org/show_bug.cgi?id=781471
This commit is contained in:
parent
384ef7e100
commit
cd678d86e8
@ -186,7 +186,8 @@ const FdoNotificationDaemon = new Lang.Class({
|
||||
return source;
|
||||
}
|
||||
|
||||
source = new FdoNotificationDaemonSource(title, pid, sender, ndata ? ndata.hints['desktop-entry'] : null);
|
||||
let appId = ndata ? ndata.hints['desktop-entry'] || null : null;
|
||||
source = new FdoNotificationDaemonSource(title, pid, sender, appId);
|
||||
|
||||
this._sources.push(source);
|
||||
source.connect('destroy', Lang.bind(this, function() {
|
||||
|
Loading…
Reference in New Issue
Block a user