diff --git a/src/GUI/FGPUIMenuBar.cxx b/src/GUI/FGPUIMenuBar.cxx old mode 100644 new mode 100755 index 5141ca916..633ea7a99 --- a/src/GUI/FGPUIMenuBar.cxx +++ b/src/GUI/FGPUIMenuBar.cxx @@ -162,7 +162,8 @@ FGPUIMenuBar::fireItem (puObject * item) vector &bindings = _bindings[name]; int nBindings = bindings.size(); - flightgear::addSentryBreadcrumb("fire menu item:" + string{item->getLabel()}, "info"); + const string label = item->getLabel() ? string{ item->getLabel() } : ""; + flightgear::addSentryBreadcrumb("fire menu item:" + label, "info"); for (int i = 0; i < nBindings; i++) bindings[i]->fire();