Kaydet (Commit) fe9414f9 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Michael Meeks

Don't use GetDBManager() without checking it for nullness

Change-Id: Idb7b16a6976df62a1beea8a01c812206a0b8b85a
Signed-off-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst d66a37fd
......@@ -422,7 +422,8 @@ bool SwDocShell::SaveAs( SfxMedium& rMedium )
CalcLayoutForOLEObjects(); // format for OLE objects
bool bURLChanged = !GetMedium() || GetMedium()->GetURLObject() != rMedium.GetURLObject();
if (!m_xDoc->GetDBManager()->getEmbeddedName().isEmpty() && bURLChanged)
auto pMgr = m_xDoc->GetDBManager();
if (pMgr && !pMgr->getEmbeddedName().isEmpty() && bURLChanged)
{
// We have an embedded data source definition, need to re-store it,
// otherwise relative references will break when the new file is in a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment