From eb20fd85ddd25026a1b814d75fac6b5aa4ec0ef7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 5 Aug 2018 10:33:02 +0100 Subject: coverity#1438224 Dereference null return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I794c54867b83d738a075f9fa0dbd31fe62de49b9 Reviewed-on: https://gerrit.libreoffice.org/58610 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara (cherry picked from commit e5c3b913cc5b656710677e3597079e0cd5040f82) Reviewed-on: https://gerrit.libreoffice.org/58842 Reviewed-by: Andras Timar --- oox/source/drawingml/shape.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'oox') diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 5483dcc06ff1..984b159e3dfa 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -521,6 +521,7 @@ static inline void lcl_createPresetShape( uno::Reference& xShap eAdjust = pParagraph->getProperties().getParaAdjust().get(); xSet->setPropertyValue( "ParaAdjust", uno::makeAny( eAdjust ) ); SvxShape* pShape = SvxShape::getImplementation( xShape ); + assert(pShape); SdrTextHorzAdjust eHorzAdjust = lcl_convertAdjust( eAdjust ); pShape->GetSdrObject()->SetMergedItem( SdrTextHorzAdjustItem( eHorzAdjust ) ); } -- cgit v1.2.3