diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 21:08:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 21:25:17 +0100 |
commit | b46a98d9092a28dc4e221c84ac62e09a53cebfb2 (patch) | |
tree | 1ad9606fd84a93cf2bdb1ba35584e80001899037 /sc | |
parent | 16c4dcf4e61bcec42637141293a7ad22a676b741 (diff) |
coverity#704702 Dereference after null check
Change-Id: Ie87a6e27a399b2c758e160eed1ab0f4b1704b5cd
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/drawfunc/fusel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx index ff6ca891c6d0..415e5a436b4e 100644 --- a/sc/source/ui/drawfunc/fusel.cxx +++ b/sc/source/ui/drawfunc/fusel.cxx @@ -517,7 +517,7 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) SdrViewEvent aVEvt; SdrHitKind eHit = pView->PickAnything( rMEvt, SDRMOUSEBUTTONDOWN, aVEvt ); - if ( eHit != SDRHIT_NONE && aVEvt.pObj == pObj ) + if (eHit != SDRHIT_NONE && aVEvt.pObj == pObj && pViewShell) { sal_uInt16 nSdrObjKind = pObj->GetObjIdentifier(); |