summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-05 16:42:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-06 14:47:22 +0100
commit89f5d9efb74c9105b1bf7dc26ecd23e5cf711025 (patch)
treee575dada4f69b18ec934c49ee2c198709d5935cc /cui
parent5683dfcf49f6018739e52ea0e25ca062c4d31697 (diff)
Resolves: tdf#130340 null deref when nothing selected
Change-Id: Ie406006cbcca566ddd32fd86a7e88f0c754dd02e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88047 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/acccfg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index ca602f8e96be..98f67d601025 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -1181,7 +1181,7 @@ IMPL_LINK(SfxAcceleratorConfigPage, SelectHdl, weld::TreeView&, rListBox, void)
m_xRemoveButton->set_sensitive( false );
m_xChangeButton->set_sensitive( false );
- if (pEntry->m_bIsConfigurable)
+ if (pEntry && pEntry->m_bIsConfigurable)
{
if (pEntry->isConfigured())
m_xRemoveButton->set_sensitive(true);