diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-10-11 18:25:22 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-10-11 19:57:40 +0300 |
commit | c387836fa6782c7efff9ade6bfa18fac21ec0e05 (patch) | |
tree | f0eea5dee201356859deb5f67644cf530f1a7db3 /sw/source | |
parent | 5268927d390295015abb68abcd310167abe8b8bd (diff) |
Don't use GetDBManager() without checking it for nullness
Change-Id: Idb7b16a6976df62a1beea8a01c812206a0b8b85a
Diffstat (limited to 'sw/source')
-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) { |