summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-23 15:40:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 15:40:35 +0000
commit8444cd780268afba0b38840370acd07966d630d5 (patch)
tree6210ead7450d0ba938ec7eaac51795bfb2d34ed2 /reportdesign
parentf5224665b8d613afca9cd57f9af0c88e4518e2c7 (diff)
coverity#704661 Unchecked dynamic_cast
Change-Id: I50bdab52c8758a71656f47e3bf053181c7831c46
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/dlgedfunc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx
index 1af8f100afee..7badb0e8ec16 100644
--- a/reportdesign/source/ui/report/dlgedfunc.cxx
+++ b/reportdesign/source/ui/report/dlgedfunc.cxx
@@ -402,7 +402,7 @@ void DlgEdFunc::activateOle(SdrObject* _pObj)
if (!bIsInplaceOle)
{
SdrOle2Obj* pOleObj = dynamic_cast<SdrOle2Obj*>(_pObj);
- if ( pOleObj->GetObjRef().is() )
+ if (pOleObj && pOleObj->GetObjRef().is())
{
if (m_rView.IsTextEdit())
{