From 5c2966dda3fbe020e9d14fb1cb082446b6820ad6 Mon Sep 17 00:00:00 2001 From: Jonh Wendell Date: Wed, 14 Jul 2010 14:45:42 -0300 Subject: [PATCH] Do not access an invalid ActionGroup. Closes #624362. --- gtk/gtkapplication.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index a0864bdbc6..a59e236d5d 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -165,6 +165,9 @@ gtk_application_default_action (GtkApplication *application, GtkApplicationPrivate *priv = application->priv; GtkAction *action; + if (!priv->main_actions) + return; + action = gtk_action_group_get_action (priv->main_actions, action_name); if (action) gtk_action_activate (action);