summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objserv.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/objserv.cxx')
-rw-r--r--sfx2/source/doc/objserv.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 26301eb1cb6d..ab43f0482492 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1839,8 +1839,9 @@ uno::Sequence< security::DocumentSignatureInformation > SfxObjectShell::GetDocum
OUString aVersion;
try
{
- uno::Reference < beans::XPropertySet > xPropSet( GetStorage(), uno::UNO_QUERY_THROW );
- xPropSet->getPropertyValue(u"Version"_ustr) >>= aVersion;
+ uno::Reference < beans::XPropertySet > xPropSet( GetStorage(), uno::UNO_QUERY );
+ if (xPropSet)
+ xPropSet->getPropertyValue(u"Version"_ustr) >>= aVersion;
}
catch( uno::Exception& )
{