mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-07 11:20:09 +00:00
GtkAppChooserButton: Fix a possible crash
We were not correctly dealing with content_type being NULL in one place.
This commit is contained in:
parent
5727a86760
commit
ed28a71bf2
@ -332,7 +332,8 @@ gtk_app_chooser_button_populate (GtkAppChooserButton *self)
|
||||
|
||||
if (self->priv->show_default_item)
|
||||
{
|
||||
default_app = g_app_info_get_default_for_type (self->priv->content_type, FALSE);
|
||||
if (self->priv->content_type)
|
||||
default_app = g_app_info_get_default_for_type (self->priv->content_type, FALSE);
|
||||
|
||||
if (default_app != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user