summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-11 08:49:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-11 11:42:03 +0100
commiteae57fb4035d7471ca2477dd1e81eb158843747e (patch)
tree949bb9f107f4e1093f8bc1e7c724ae667d575ec4 /sw
parent2c0930f19e269348a2aadc0ffe69ff23d04d7cc1 (diff)
cid#1470587 Dereference after null check
since... commit 4d6f00a097e68715c63c3388b1183bf08fa8cdbb Date: Thu Dec 10 00:09:32 2020 +0100 flyincnt: Modify no more Change-Id: Ief0ed9248c89b74e325746401c321a34990477ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107582 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/flyincnt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/flyincnt.cxx b/sw/source/core/layout/flyincnt.cxx
index be7b5722a593..69417d7f07ee 100644
--- a/sw/source/core/layout/flyincnt.cxx
+++ b/sw/source/core/layout/flyincnt.cxx
@@ -118,7 +118,7 @@ void SwFlyInContentFrame::SwClientNotify(const SwModify&, const SfxHint& rHint)
aTweakedChgs.first->ClearItem(RES_FRMMACRO);
aSuperArgs = std::pair<const SfxPoolItem*, const SfxPoolItem*>(aTweakedChgs.first.get(), aTweakedChgs.second.get());
}
- } else if(pNewAttrSetChg->GetChgSet()->Count())
+ } else if (pNewAttrSetChg && pNewAttrSetChg->GetChgSet()->Count())
aSuperArgs = std::pair<const SfxPoolItem*, const SfxPoolItem*>(pLegacy->m_pOld, pLegacy->m_pNew);
break;
}