diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 3b75c7e79ba9..9ef664d1cb2f 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -3558,6 +3558,12 @@ bool SfxObjectShell::CopyStoragesOfUnknownMediaType(const uno::Reference< embed: const uno::Reference< embed::XStorage >& xTarget, const uno::Sequence<OUString>& rExceptions) { + if (!xSource.is()) + { + SAL_WARN( "sfx.doc", "SfxObjectShell::GetStorage() failed"); + return false; + } + // This method does not commit the target storage and should not do it bool bResult = true; |