summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-11 09:57:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-11 12:11:42 +0000
commit7c19ff431b5b9f7b5fd3a72d85d0da4acef3e0da (patch)
treeb1eb18f4478a288a166d28f9a712d64825f71203 /sw
parent685f84dfc227b98f71e64f3e11a123117ed4e184 (diff)
coverity#704934 Dereference after null check
Change-Id: I5242f89448431efb4a3f7ad5c84ab685b2e40f68
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/fields/docufld.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index d61ecf14f4a8..c66d14338199 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -142,7 +142,7 @@ void SwPageNumberFieldType::ChangeExpansion( SwDoc* pDoc,
nNumberingType = *pNumFmt;
bVirtuell = false;
- if( bVirt )
+ if (bVirt && pDoc)
{
// check the flag since the layout NEVER sets it back
const SfxItemPool &rPool = pDoc->GetAttrPool();