summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-12 10:27:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 13:03:57 +0000
commitc2056dc4af2959066d0dd3918fbe742d206e195c (patch)
tree54a1f0ca00f6ad07889735813d4f2d9829fde687 /sd
parent17fd9447264fd75fe990e40e5faab42c9720504c (diff)
coverity#705850 Dereference before null check
Change-Id: Icb7dc092c1511006ab6592425d443dadcaeb1784
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc2.cxx2
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();