diff --git a/libraries/ui-plugins/src/ui-plugins/PluginContainer.cpp b/libraries/ui-plugins/src/ui-plugins/PluginContainer.cpp index 58dc971cb9..0c71d4fa69 100644 --- a/libraries/ui-plugins/src/ui-plugins/PluginContainer.cpp +++ b/libraries/ui-plugins/src/ui-plugins/PluginContainer.cpp @@ -72,6 +72,11 @@ struct MenuCache { } flushCache(menu); MenuWrapper* parentItem = menu->getMenu(path); + if (!parentItem) { + qWarning() << "Attempted to add item to non-existent path " << path; + return; + } + QAction* action = menu->addActionToQMenuAndActionHash(parentItem, name); if (!groupName.isEmpty()) { QActionGroup* group{ nullptr };