summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-16 20:37:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-17 08:58:56 +0100
commit297df4434848902a771b6a01c6b210ffbf04a6dc (patch)
tree21b47150e66a7cd87b571ca7f9d48c8721bd3034 /svx
parent213571db0e69db5d8d16d16e8a5c428b824e80d1 (diff)
coverity#704833 Dereference after null check
Change-Id: I307a277ce8f473652afd084eb9848ecb27574714
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 4c2680965844..7d301eda9999 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1804,7 +1804,7 @@ bool SdrMarkView::PickObj(const Point& rPnt, short nTol, SdrObject*& rpObj, SdrP
if (!pObj->HasMacro() || !pObj->IsMacroHit(aHitRec)) pObj=NULL;
}
if (pObj!=NULL && (nOptions & SDRSEARCH_WITHTEXT) !=0 && pObj->GetOutlinerParaObject()==NULL) pObj=NULL;
- if (pObj!=NULL && (nOptions & SDRSEARCH_TESTTEXTAREA) !=0)
+ if (pObj!=NULL && (nOptions & SDRSEARCH_TESTTEXTAREA) !=0 && pPV)
{
if(!SdrObjectPrimitiveHit(*pObj, aPt, 0, *pPV, 0, true))
{