summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-30 21:22:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-30 21:22:22 +0000
commit0eb9d943614f6b374a0488ba1349be7d1716ae6d (patch)
tree56bd68e96c13d81cb3e3d148cb3772c25bb02029
parent28db7916b7296d40233b464c4603722f735f0d10 (diff)
coverity#1267671 Dereference after null check
Change-Id: I48fe04973732807eca43eaeeba716622318abf6d
-rw-r--r--sd/source/core/sdpage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 4ee161e02546..8cfeff17e452 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -777,7 +777,7 @@ void SdPage::CreateTitleAndLayout(bool bInit, bool bCreate )
pMasterPage->EnsureMasterPageDefaultBackground();
}
- if( static_cast<SdDrawDocument*>( GetModel() )->GetDocumentType() == DOCUMENT_TYPE_IMPRESS )
+ if (GetModel() && static_cast<SdDrawDocument*>(GetModel())->GetDocumentType() == DOCUMENT_TYPE_IMPRESS)
{
if( mePageKind == PK_HANDOUT && bInit )
{