summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-04-19 17:18:28 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-19 17:29:04 +0200
commit1339fa3fbe0d25cb08c438a6915ced41d3414294 (patch)
tree4c4dd88169e34766952c0f656a1ed52988e58ec3
parent04937a6154ccb99a71a0a6ffac764e8e92ded1bd (diff)
coverity#735764 Unchecked dynamic_cast
Change-Id: Ic7dc70c1052f5ab04a3e1795549ca43e2e0f2587
-rw-r--r--oox/source/ppt/pptshape.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx
index 11b25eef32b9..953e2b8b6dc0 100644
--- a/oox/source/ppt/pptshape.cxx
+++ b/oox/source/ppt/pptshape.cxx
@@ -279,7 +279,7 @@ void PPTShape::addShape(
// SAL_INFO("oox.ppt","combined master text list style");
// aMasterTextListStyle->dump();
}
- if( pPPTPlaceholder->mpPlaceholder.get() ) {
+ if( pPPTPlaceholder && pPPTPlaceholder->mpPlaceholder.get() ) {
SAL_INFO("oox.ppt","placeholder has parent placeholder: " << pPPTPlaceholder->mpPlaceholder->getId() << " type: " << lclDebugSubType( pPPTPlaceholder->mpPlaceholder->getSubType() ) << " index: " << pPPTPlaceholder->mpPlaceholder->getSubTypeIndex().get() );
SAL_INFO("oox.ppt","has textbody " << (pPPTPlaceholder->mpPlaceholder->getTextBody() != 0) );
TextListStylePtr pPlaceholderStyle = getSubTypeTextListStyle( rSlidePersist, pPPTPlaceholder->mpPlaceholder->getSubType() );