diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 09:36:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 11:29:19 +0000 |
commit | 426d0963835070bc596bbf7bd0d7c4d1d3419ef4 (patch) | |
tree | 9d9c09499819615619ebb55c6b352e3a991b2480 /svtools | |
parent | 417a8624c7dd11da99f30e8d62bb4f53becd318e (diff) |
coverity#440831 Dereference before null check
Change-Id: If19c17088bfbc43e5079d88a3110491e56805749
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx index b99921696530..e6811764e087 100644 --- a/svtools/source/graphic/grfmgr.cxx +++ b/svtools/source/graphic/grfmgr.cxx @@ -460,7 +460,7 @@ sal_Bool GraphicObject::IsCached( OutputDevice* pOut, const Point& rPt, const Si { Point aPt( rPt ); Size aSz( rSz ); - if ( pAttr->IsCropped() ) + if ( pAttr && pAttr->IsCropped() ) { PolyPolygon aClipPolyPoly; sal_Bool bRectClip; |