Commit 763f0a37 authored by Matthias Clasen's avatar Matthias Clasen

inspector: Avoid a crash

An unset action-name should not cause us to crash.
parent 1e63d94a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment