sc/source/ui/condformat/condformatmgr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a51a775ea87010286e6624b06e9805bcca2bb95f
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Aug 3 21:48:04 2025 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Aug 7 12:52:51 2025 +0200

    cid#1660263 Explicit null dereferenced
    
    Change-Id: Id6d36908f93783b8b742e59861452cef00a43dca
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188895
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins
    (cherry picked from commit 916d3500d1e7cc1ee62da902552ee747493b0abd)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189048
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/condformat/condformatmgr.cxx 
b/sc/source/ui/condformat/condformatmgr.cxx
index 2e5cef3a01a0..5e60a2a2a70d 100644
--- a/sc/source/ui/condformat/condformatmgr.cxx
+++ b/sc/source/ui/condformat/condformatmgr.cxx
@@ -124,7 +124,7 @@ std::unique_ptr<ScConditionalFormatList> 
ScCondFormatManagerDlg::GetConditionalF
 
 void ScCondFormatManagerDlg::UpdateButtonSensitivity()
 {
-    bool bNewSensitivity = !m_xFormatList->empty();
+    bool bNewSensitivity = m_xFormatList && !m_xFormatList->empty();
     m_xBtnRemove->set_sensitive(bNewSensitivity);
     m_xBtnEdit->set_sensitive(bNewSensitivity);
 }

Reply via email to