From 36233b158b5de6c474f06c8c8772f0012b191baa Mon Sep 17 00:00:00 2001 From: Muthu Subramanian Date: Tue, 7 Aug 2012 16:14:13 +0530 Subject: n#774167: Crash fix. --- oox/source/drawingml/table/tablecell.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'oox') diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx index c89a4f9f64a7..7675c106df5a 100644 --- a/oox/source/drawingml/table/tablecell.cxx +++ b/oox/source/drawingml/table/tablecell.cxx @@ -358,7 +358,8 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, ::oo aFillProperties.pushToPropMap( aPropMap, rFilterBase.getGraphicHelper() ); PropertySet( xPropSet ).setProperties( aPropMap ); - getTextBody()->insertAt( rFilterBase, xText, xAt, aTextStyleProps, pMasterTextListStyle ); + if( getTextBody() ) + getTextBody()->insertAt( rFilterBase, xText, xAt, aTextStyleProps, pMasterTextListStyle ); } } } } -- cgit