summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-10 12:42:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-10 17:56:47 +0200
commita0d4955ba650ace35b7fd411a9670be1032e6982 (patch)
tree473910a5f7de78aefa8d11cbc5f4f9ac2734b6de
parent1eb18361783a25e6c70a94564d55d4e2db7586dd (diff)
cid#1476017 Dereference after null check
Change-Id: Icd991bb20dc3aa96041f6a432bddf1bb2775f371 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113907 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 07ff4d41f730..cae7553eef51 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -3181,9 +3181,9 @@ SwFlyFrameFormat* SwWW8ImplReader::ImportReplaceableDrawables( SdrObject* &rpObj
if (!rpOurNewObject->IsInserted())
{
// pass information, if object is in page header|footer to method.
- m_xWWZOrder->InsertEscherObject( rpOurNewObject, pF->nSpId,
- pRecord->bDrawHell,
- m_bIsHeader || m_bIsFooter );
+ m_xWWZOrder->InsertEscherObject(rpOurNewObject, pF->nSpId,
+ pRecord && pRecord->bDrawHell,
+ m_bIsHeader || m_bIsFooter);
}
}
return pRetFrameFormat;