diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 10:41:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 16:30:35 +0100 |
commit | 4ed190494fc06e6486ca9c4860886605183a53e0 (patch) | |
tree | acc9fe48a6ee74cfa571d138d9f8f04debbbe8f9 /sw/source | |
parent | 377efa8fed08331108e6ffbb0f0871b8c5e5a9ac (diff) |
coverity#1242432 Dereference after null check
Change-Id: I07525411e1c09b49acb64262459d6d6b70cf6e9c
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index a5abefd20856..7bf7da305a81 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -4303,7 +4303,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) { SdrObject* pObj; SdrPageView* pPV; - if (pSdrView->PickObj(aDocPos, pSdrView->getHitTolLog(), pObj, pPV, SDRSEARCH_ALSOONMASTER )) + if (pSdrView && pSdrView->PickObj(aDocPos, pSdrView->getHitTolLog(), pObj, pPV, SDRSEARCH_ALSOONMASTER )) { std::map<SwFrmFmt*, SwFrmFmt*> aTextBoxShapes = SwTextBoxHelper::findShapes(rSh.GetDoc()); SwDrawContact* pDrawContact = static_cast<SwDrawContact*>(GetUserCall(pObj)); |