Kaydet (Commit) 0eb9d943 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1267671 Dereference after null check

Change-Id: I48fe04973732807eca43eaeeba716622318abf6d
üst 28db7916
......@@ -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 )
{
......
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