[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 20 12:28:56 UTC 2020
sfx2/source/appl/linkmgr2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e8b4338d050a67ec54e579d921159f2fd20e9c99
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Sep 20 11:41:10 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Sep 20 14:28:18 2020 +0200
cid#1466905 Dereference after null check
Change-Id: I35fe1f3890200728af6dcd7d030f5e1169e9fe4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103070
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
index 7f760ab26e13..befb7510f82a 100644
--- a/sfx2/source/appl/linkmgr2.cxx
+++ b/sfx2/source/appl/linkmgr2.cxx
@@ -693,7 +693,7 @@ bool SvxInternalLink::Connect( sfx2::SvBaseLink* pLink )
aArgs.Put(aDdeConnect);
Reference<XComponent> xComp = SfxObjectShell::CreateAndLoadComponent(aArgs);
pFndShell = SfxObjectShell::GetShellFromComponent(xComp);
- if (xComp.is() && pFndShell)
+ if (xComp.is() && pFndShell && pLinkMgr)
{
pLinkMgr->InsertCachedComp(xComp);
sfx2::LinkManager::LinkServerShell(sItem, *pFndShell, *pLink);
More information about the Libreoffice-commits
mailing list