diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 95362d7e2499..faf8e86cbb57 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -4126,7 +4126,9 @@ AutoRecovery::EFailureSafeResult AutoRecovery::implts_copyFile(const OUString& s try { - ::ucbhelper::Content::create(sSource, xEnvironment, m_xContext, aSourceContent); + bool bSuccess = ::ucbhelper::Content::create(sSource, xEnvironment, m_xContext, aSourceContent); + if (!bSuccess) + return AutoRecovery::E_ORIGINAL_FILE_MISSING; aTargetContent.transferContent(aSourceContent, ::ucbhelper::InsertOperation_COPY, sTargetName, nNameClash); } catch(const css::uno::Exception&)