summaryrefslogtreecommitdiff
path: root/sd/source/core
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-11 20:36:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-11 21:06:00 +0100
commit00c6053bd337eee26453fb783a90346a41cb0f27 (patch)
tree6d020cf20d792926509333bc92dabdc309adcadc /sd/source/core
parent2c71bdd8fd84a6dae2977ddde00cf5321b19e9b3 (diff)
coverity#736795 Dereference before null check
Change-Id: Ic96095d6c8bf6a0ecb05452f2411d025e3965a57
Diffstat (limited to 'sd/source/core')
-rw-r--r--sd/source/core/drawdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx
index 5904a64da872..63d51585aff9 100644
--- a/sd/source/core/drawdoc.cxx
+++ b/sd/source/core/drawdoc.cxx
@@ -753,7 +753,7 @@ void SdDrawDocument::NewOrLoadCompleted( SdPage* pPage, SdStyleSheetPool* pSPool
}
}
- if (pObj->ISA(SdrTextObj) && pObj->IsEmptyPresObj() && pPage)
+ if (pObj->ISA(SdrTextObj) && pObj->IsEmptyPresObj())
{
PresObjKind ePresObjKind = pPage->GetPresObjKind(pObj);
OUString aString( pPage->GetPresObjText(ePresObjKind) );