[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Dec 11 10:42:45 UTC 2020
sw/source/core/layout/flyincnt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit eae57fb4035d7471ca2477dd1e81eb158843747e
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Dec 11 08:49:28 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Dec 11 11:42:03 2020 +0100
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 at redhat.com>
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;
}
More information about the Libreoffice-commits
mailing list