Deal with startup notify id being NULL
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Apr 2014 22:46:38 +0000 (15:46 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Apr 2014 02:00:12 +0000 (19:00 -0700)
commit94e5dafbc9ae823590aa3a3f3989b8f5978f1a9d
treecffb668fe1764cd163642f2ce148d7ea95d5bae2
parent6c395244a5db7ac96d0c6279c6e846e99c1dc967
Deal with startup notify id being NULL

The app launch context may just not support startup notification,
in which case, g_app_launch_context_get_startup_notify_id() will
return NULL.

Failure to take this into account leads to criticals like this:
gnome-session[8489]: GLib-CRITICAL: g_variant_new_take_string: assertion 'string != NULL' failed
gnome-session[8489]: GLib-CRITICAL: g_variant_new_variant: assertion 'value != NULL' failed
gnome-session[8489]: GLib-CRITICAL: g_variant_get_type: assertion 'value != NULL' failed
gnome-session[8489]: GLib-CRITICAL: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed

https://bugzilla.gnome.org/show_bug.cgi?id=728066
gio/gdesktopappinfo.c