diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-28 19:21:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-29 09:18:58 +0100 |
commit | af16372211927c3ed1b3cc760ec182c30fda491c (patch) | |
tree | b257d91bf714e6c7e72cf072dba954be5ba94fa8 /sc/source/ui | |
parent | 8aa327ab3e55b2978da31764afcfbdc545ffc0b0 (diff) |
cid#1453992 Dereference after null check
presumably pInputHdl cannot be null
Change-Id: If7fe7b43a23c5d917a18b09f46226c5b8e6009a1
Reviewed-on: https://gerrit.libreoffice.org/81626
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/formdlg/formula.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx index d71351840b85..784281c57185 100644 --- a/sc/source/ui/formdlg/formula.cxx +++ b/sc/source/ui/formdlg/formula.cxx @@ -96,10 +96,9 @@ ScFormulaDlg::ScFormulaDlg(SfxBindings* pB, SfxChildWindow* pCW, ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl(m_pViewShell); - OSL_ENSURE( pInputHdl, "Missing input handler :-/" ); + assert(pInputHdl && "Missing input handler :-/"); - if ( pInputHdl ) - pInputHdl->NotifyChange( nullptr ); + pInputHdl->NotifyChange( nullptr ); ScFormulaReferenceHelper::enableInput( true ); ScFormulaReferenceHelper::EnableSpreadsheets(); |