From af15127871d38a862ce300ceda5cc74624fda8df Mon Sep 17 00:00:00 2001 From: Muthu Subramanian Date: Wed, 1 Feb 2012 13:32:56 +0530 Subject: [PATCH] Fixes crashing while loading manipulated pptx files. --- oox/source/drawingml/diagram/diagram.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx index 91a475f63468..919400191f52 100644 --- a/oox/source/drawingml/diagram/diagram.cxx +++ b/oox/source/drawingml/diagram/diagram.cxx @@ -340,7 +340,8 @@ void Diagram::addTo( const ShapePtr & pParentShape ) // create Shape hierarchy ShapeCreationVisitor aCreationVisitor(pParentShape, *this); - mpLayout->getNode()->accept(aCreationVisitor); + if( mpLayout->getNode() ) + mpLayout->getNode()->accept( aCreationVisitor ); } OUString Diagram::getLayoutId() const