Skip to content
Snippets Groups Projects
Commit 9e6efccf authored by Christian Dreher's avatar Christian Dreher
Browse files

fix: Ensure stack is not empty before calling top.

parent de7db94b
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,10 @@ namespace armarx::armem
template <class Navigator>
void addValueLabel(Navigator& n, const std::string& typeName)
{
groups.top().addChild(Label(this->makeValueLabelText(n, typeName)));
if (not groups.empty())
{
groups.top().addChild(Label(this->makeValueLabelText(n, typeName)));
}
}
template <class Navigator>
std::string makeValueLabelText(Navigator& n, const std::string& typeName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment