Commit ed28a71b authored by Matthias Clasen's avatar Matthias Clasen

GtkAppChooserButton: Fix a possible crash

We were not correctly dealing with content_type being NULL
in one place.
parent 5727a867
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment