From f07d89de2aafdc3f1e28f87017cfcb6ede2f2791 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Wed, 1 Jul 2009 21:45:33 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20587543=20=E2=80=93=20crash=20in=20GNU=20I?= =?UTF-8?q?mage=20Manipulation=20Program:=20Pressing=20shift+-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not all actions have procedures associated with them, for example unused "plug-in-recent-[N]" actions, so check for NULL before we invoke the plug-in action --- app/widgets/gimppluginaction.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/widgets/gimppluginaction.c b/app/widgets/gimppluginaction.c index b791dd3edc..7eaaa575b0 100644 --- a/app/widgets/gimppluginaction.c +++ b/app/widgets/gimppluginaction.c @@ -163,7 +163,12 @@ gimp_plug_in_action_activate (GtkAction *action) { GimpPlugInAction *plug_in_action = GIMP_PLUG_IN_ACTION (action); - gimp_plug_in_action_selected (plug_in_action, plug_in_action->procedure); + /* Not all actions have procedures associated with them, for example + * unused "plug-in-recent-[N]" actions, so check for NULL before we + * invoke the plug-in action + */ + if (plug_in_action->procedure) + gimp_plug_in_action_selected (plug_in_action, plug_in_action->procedure); } static void