diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-16 20:42:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-17 08:58:57 +0100 |
commit | 4f4d8c8edbd0fc9f951c42cc1c02235b411a700f (patch) | |
tree | b3d20b91695a7e6e3346ba98aaa925de56456350 /oox | |
parent | c152349f69acfb6bb873ed1cd12ca1b6dc325f1f (diff) |
coverity#1202823 Dereference null return value
Change-Id: I72d795203aedf34d32012ecee3c8fdfbc2a8a08f
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index fd60107e7455..fb0cd6a5df5b 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1031,7 +1031,7 @@ void DrawingML::WriteShapeTransformation( Reference< XShape > rXShape, sal_Int32 if (!bSuppressRotation) { SdrObject* pShape = (SdrObject*) GetSdrObjectFromXShape( rXShape ); - nRotation=pShape->GetRotateAngle(); + nRotation = pShape ? pShape->GetRotateAngle() : 0; if (nRotation != 0 && nRotation != 18000) { int faccos=bFlipV ? -1 : 1; |