Kaydet (Commit) 7c19ff43 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704934 Dereference after null check

Change-Id: I5242f89448431efb4a3f7ad5c84ab685b2e40f68
üst 685f84df
...@@ -142,7 +142,7 @@ void SwPageNumberFieldType::ChangeExpansion( SwDoc* pDoc, ...@@ -142,7 +142,7 @@ void SwPageNumberFieldType::ChangeExpansion( SwDoc* pDoc,
nNumberingType = *pNumFmt; nNumberingType = *pNumFmt;
bVirtuell = false; bVirtuell = false;
if( bVirt ) if (bVirt && pDoc)
{ {
// check the flag since the layout NEVER sets it back // check the flag since the layout NEVER sets it back
const SfxItemPool &rPool = pDoc->GetAttrPool(); const SfxItemPool &rPool = pDoc->GetAttrPool();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment