diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 10:31:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 16:30:34 +0100 |
commit | e6e7e5deb320962e31a4d8c49028002c3aa061df (patch) | |
tree | 4145e98276f60d7e72be692550af179ab5b06b51 /sc/source | |
parent | d904d6d15d8072348d5394fc367d5a6db18fe16f (diff) |
coverity#1242477 Dereference null return value
Change-Id: Ic2d8dab00d5af47f6274433ee811f567f990400b
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/tabvwshg.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabvwshg.cxx b/sc/source/ui/view/tabvwshg.cxx index 1f61bdfb509c..0387b746495e 100644 --- a/sc/source/ui/view/tabvwshg.cxx +++ b/sc/source/ui/view/tabvwshg.cxx @@ -61,6 +61,9 @@ void ScTabViewShell::InsertURLButton( const OUString& rName, const OUString& rUR SdrObject* pObj = SdrObjFactory::MakeNewObject(FmFormInventor, OBJ_FM_BUTTON, pDrView->GetSdrPageView()->GetPage(), pModel); SdrUnoObj* pUnoCtrl = PTR_CAST(SdrUnoObj, pObj); + OSL_ENSURE( pUnoCtrl, "no SdrUnoObj"); + if( !pUnoCtrl ) + return; uno::Reference<awt::XControlModel> xControlModel = pUnoCtrl->GetUnoControlModel(); OSL_ENSURE( xControlModel.is(), "UNO-Control ohne Model" ); |