summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/gtkmm2ext/actions.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/actions.cc b/libs/gtkmm2ext/actions.cc
index e9ff15fa46..43a2a24d2d 100644
--- a/libs/gtkmm2ext/actions.cc
+++ b/libs/gtkmm2ext/actions.cc
@@ -237,6 +237,10 @@ ActionManager::get_action (const char* group_name, const char* action_name)
gtkmm2.6, so we fall back to the C level.
*/
+ if (ui_manager == 0) {
+ return RefPtr<Action> ();
+ }
+
GList* list = gtk_ui_manager_get_action_groups (ui_manager->gobj());
GList* node;
RefPtr<Action> act;