diff options
Diffstat (limited to 'sw/source/uibase/app/docsh.cxx')
-rw-r--r-- | sw/source/uibase/app/docsh.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx index 86d72ac8fb88..8a7d196ea3c2 100644 --- a/sw/source/uibase/app/docsh.cxx +++ b/sw/source/uibase/app/docsh.cxx @@ -454,7 +454,8 @@ bool SwDocShell::SaveAs( SfxMedium& rMedium ) CalcLayoutForOLEObjects(); // format for OLE objects const bool bURLChanged = !GetMedium() || GetMedium()->GetURLObject() != rMedium.GetURLObject(); - const bool bHasEmbedded = !m_xDoc->GetDBManager()->getEmbeddedName().isEmpty(); + auto pMgr = m_xDoc->GetDBManager(); + const bool bHasEmbedded = pMgr ? !pMgr->getEmbeddedName().isEmpty() : false; bool bSaveDS = bHasEmbedded && bURLChanged; if (bSaveDS) { |