diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-11-28 09:54:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-11-29 09:37:46 +0100 |
commit | 66452607f5cbd81570442e646f76eff343cf0986 (patch) | |
tree | 8005877907fa19decd13126f994a99c2349967f1 /dbaccess | |
parent | bbbb509c3e3d2afa12392c521c382fb70c43d0a5 (diff) |
cid#1554867 silence Out-of-bounds access
Change-Id: I11acf38f1243e1eea180b478055f12839c58f551
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160015
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/app/AppDetailPageHelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index a649420a8c00..c4adb2f45935 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -761,7 +761,7 @@ void OAppDetailPageHelper::elementReplaced(ElementType eType, std::unique_ptr<weld::TreeIter> OAppDetailPageHelper::elementAdded(ElementType _eType,const OUString& _rName, const Any& _rObject ) { std::unique_ptr<weld::TreeIter> xRet; - DBTreeViewBase* pTreeView = m_aLists[_eType].get(); + DBTreeViewBase* pTreeView = _eType != E_NONE ? m_aLists[_eType].get() : nullptr; if (!pTreeView) return xRet; weld::TreeView& rTreeView = pTreeView->GetWidget(); |