oox/source/drawingml/shape.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit e5c3b913cc5b656710677e3597079e0cd5040f82 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Aug 5 10:33:02 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Aug 5 20:28:36 2018 +0200
coverity#1438224 Dereference null return value Change-Id: I794c54867b83d738a075f9fa0dbd31fe62de49b9 Reviewed-on: https://gerrit.libreoffice.org/58610 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 5b75b94cdfba..f49f506eda9d 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -521,6 +521,7 @@ static inline void lcl_createPresetShape( uno::Reference<drawing::XShape>& 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 ) ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits