inspector: Avoid a crash

An unset action-name should not cause us to crash.
This commit is contained in:
Matthias Clasen 2014-06-05 21:08:56 -04:00
parent 1e63d94a06
commit 763f0a37c1

View File

@ -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;