summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-12-07 23:27:51 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-12-08 01:21:09 +0100
commit897d7314429d2a7aa5ba25111dc454a159bd8e5e (patch)
tree1a4823a55a13653df96dd423ccff06ac27a3a417 /vcl
parent3f5dbc06e125aadbfb377b8a9a5d72e2cd00d836 (diff)
reduce the amount of senseless exceptions during document load
Change-Id: If9d0a0539002c013f077b8fb692de4c29ca032b7 Reviewed-on: https://gerrit.libreoffice.org/64791 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/helper/commandinfoprovider.cxx2
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;
}
}