From ee90f3a3b1b81df0803d6cf87cd6a17d710909bd Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 26 Aug 2013 08:14:14 -0500 Subject: Protect against action loss --- src/im-application-list.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/im-application-list.c b/src/im-application-list.c index d69609d..8034bd3 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -223,6 +223,8 @@ app_source_action_check_draw (Application * app, const gchar * action_name) GVariant * draw; state = g_action_group_get_action_state (G_ACTION_GROUP(app->source_actions), action_name); + if (state == NULL) + return FALSE; /* uxsb */ draw = g_variant_get_child_value(state, 3); -- cgit v1.2.3