From 763f0a37c1c5e22fb068a482dee3773f1157ded7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 5 Jun 2014 21:08:56 -0400 Subject: [PATCH] inspector: Avoid a crash An unset action-name should not cause us to crash. --- gtk/inspector/prop-editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c index 752caeca99..8a13b3fe13 100644 --- a/gtk/inspector/prop-editor.c +++ b/gtk/inspector/prop-editor.c @@ -1222,6 +1222,9 @@ find_action_owner (GtkActionable *actionable) GActionGroup *group; full_name = gtk_actionable_get_action_name (actionable); + if (!full_name) + return NULL; + dot = strchr (full_name, '.'); prefix = g_strndup (full_name, dot - full_name); name = dot + 1;