summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-05 16:42:34 +0000
committerMichael Stahl <michael.stahl@cib.de>2020-02-11 10:36:18 +0100
commite4f7f537bd0be5dbb57790101dce263345d684f1 (patch)
treeee6f80ebf490b169ec8808be1d72372d6e6367c5
parent48117f353c60de971089b793bbdd48f897cb62f0 (diff)
Resolves: tdf#130340 null deref when nothing selected
Change-Id: Ie406006cbcca566ddd32fd86a7e88f0c754dd02e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88048 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de> (cherry picked from commit 5cbaec2ffd289f6b3e1dce15c00d5b1d3c2f815e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88234 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Michael Stahl <michael.stahl@cib.de>
-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 24a601d0af99..4bdeaabfd884 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -1182,7 +1182,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);