diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 15:40:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 15:40:35 +0000 |
commit | 8444cd780268afba0b38840370acd07966d630d5 (patch) | |
tree | 6210ead7450d0ba938ec7eaac51795bfb2d34ed2 /reportdesign | |
parent | f5224665b8d613afca9cd57f9af0c88e4518e2c7 (diff) |
coverity#704661 Unchecked dynamic_cast
Change-Id: I50bdab52c8758a71656f47e3bf053181c7831c46
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/report/dlgedfunc.cxx | 2 |
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()) { |