diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 10:27:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 13:03:57 +0000 |
commit | c2056dc4af2959066d0dd3918fbe742d206e195c (patch) | |
tree | 54a1f0ca00f6ad07889735813d4f2d9829fde687 /sd | |
parent | 17fd9447264fd75fe990e40e5faab42c9720504c (diff) |
coverity#705850 Dereference before null check
Change-Id: Icb7dc092c1511006ab6592425d443dadcaeb1784
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/drawdoc2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx index 2051165eaf56..32d89ff8d427 100644 --- a/sd/source/core/drawdoc2.cxx +++ b/sd/source/core/drawdoc2.cxx @@ -407,7 +407,7 @@ SdrPage* SdDrawDocument::RemovePage(sal_uInt16 nPgNum) void SdDrawDocument::InsertMasterPage(SdrPage* pPage, sal_uInt16 nPos ) { FmFormModel::InsertMasterPage( pPage, nPos ); - if( pPage && pPage->IsMasterPage() && (static_cast<SdPage*>(pPage)->GetPageKind() == PK_STANDARD) ) + if( pPage->IsMasterPage() && (static_cast<SdPage*>(pPage)->GetPageKind() == PK_STANDARD) ) { // new master page created, add its style family SdStyleSheetPool* pStylePool = (SdStyleSheetPool*) GetStyleSheetPool(); |