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:35:47 +0100
commit1a06c015d152d2af9c6f7c412657d0eac31ab94e (patch)
treead6ed918ede1d63e9d9365ec0b602001adb830f6
parentcbd9c059ea7a865604e2a631ddc1eb88395633c1 (diff)
Resolves: tdf#130340 null deref when nothing selected
Change-Id: Ie406006cbcca566ddd32fd86a7e88f0c754dd02e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88049 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de> (cherry picked from commit 8f6c53c11ce9139fb2578332afa5783ec1a07a7f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88233 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 78351cdd187c..5f4b2ab3422d 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -1186,7 +1186,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);