Kaydet (Commit) 4ed19049 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242432 Dereference after null check

Change-Id: I07525411e1c09b49acb64262459d6d6b70cf6e9c
üst 377efa8f
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment