summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-20 11:41:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-20 14:28:18 +0200
commite8b4338d050a67ec54e579d921159f2fd20e9c99 (patch)
tree368bce1331354652f38f0a5b1483ed09db8c848e /sfx2
parentbc87d5cf6278c2e2803538fec6ea710613cc963b (diff)
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@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/linkmgr2.cxx2
1 files changed, 1 insertions, 1 deletions
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);