diff options
Diffstat (limited to 'vcl/source/helper/commandinfoprovider.cxx')
-rw-r--r-- | vcl/source/helper/commandinfoprovider.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx index ee9196c6411e..23bd3250f888 100644 --- a/vcl/source/helper/commandinfoprovider.cxx +++ b/vcl/source/helper/commandinfoprovider.cxx @@ -194,7 +194,7 @@ static Sequence<beans::PropertyValue> GetCommandProperties(const OUString& rsCom { Reference<container::XNameAccess> xNameAccess(GetCommandDescription()); Reference<container::XNameAccess> xUICommandLabels; - if (xNameAccess->getByName(rsModuleName) >>= xUICommandLabels) + if ((xNameAccess->getByName(rsModuleName) >>= xUICommandLabels) && xUICommandLabels->hasByName(rsCommandName)) xUICommandLabels->getByName(rsCommandName) >>= aProperties; } } |