diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-22 11:19:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-22 20:48:21 +0200 |
commit | 40d0b880625d2c93162ecc6a95c80772fab47da3 (patch) | |
tree | 3b434357025d2acd1478a3798995be69296c010a /sw | |
parent | d001492faddb0b95356c7744aa4d193aacb38d7d (diff) |
cid#1448262 Dereference before null check
Change-Id: I998e1c463d86aeb53b93ece58b46b2b6b7cd6360
Reviewed-on: https://gerrit.libreoffice.org/76107
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docfmt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 10bbb0d097c8..0c69d1d4a9a6 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -106,7 +106,7 @@ static bool lcl_RstAttr( const SwNodePtr& rpNd, void* pArgs ) { const sw::DocumentContentOperationsManager::ParaRstFormat* pPara = static_cast<sw::DocumentContentOperationsManager::ParaRstFormat*>(pArgs); SwContentNode* pNode = rpNd->GetContentNode(); - if (pPara->pLayout && pPara->pLayout->IsHideRedlines() + if (pPara && pPara->pLayout && pPara->pLayout->IsHideRedlines() && pNode && pNode->GetRedlineMergeFlag() == SwNode::Merge::Hidden) { return true; |