diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-04-05 14:18:21 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-04-05 14:26:01 +0200 |
commit | f4b15d214a00b514bce229bd3fcacb2b76757c6b (patch) | |
tree | 7beab2199760aa5ede8b060b91b2efe87084af0f /oox | |
parent | 2b5609634089de64768a97bdfd4bb120694ab49c (diff) |
coverity#735766 Unchecked dynamic_cast
Change-Id: I7f69e2a9d83d4632a23c6b1b15156b8e084487e2
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/shape/ShapeContextHandler.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx index 5c2aa709dcf6..57eb98bbdcbd 100644 --- a/oox/source/shape/ShapeContextHandler.cxx +++ b/oox/source/shape/ShapeContextHandler.cxx @@ -420,6 +420,8 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception) for (std::vector<OUString>::const_iterator aIt = mpShape->getExtDrawings().begin(); aIt != mpShape->getExtDrawings().end(); ++aIt) { DiagramGraphicDataContext* pDiagramGraphicDataContext = dynamic_cast<DiagramGraphicDataContext*>(mxDiagramShapeContext.get()); + if (!pDiagramGraphicDataContext) + break; OUString aFragmentPath(pDiagramGraphicDataContext->getFragmentPathFromRelId(*aIt)); oox::drawingml::ShapePtr pShapePtr( new Shape( "com.sun.star.drawing.GroupShape" ) ); pShapePtr->setDiagramType(); |