sc/source/ui/condformat/condformateasydlg.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 69c6ce6d8c6c6a6f9e3f0ea1319dbdb2190ccaab
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Tue Oct 29 06:16:59 2024 +0530
Commit:     Pranam Lashkari <lpra...@collabora.com>
CommitDate: Tue Oct 29 02:09:04 2024 +0100

    sc: fixed crashing on conditional format entry selection
    
    Change-Id: I40e5b77cb98803664cff0db370f3079431820129
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175765
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Pranam Lashkari <lpra...@collabora.com>

diff --git a/sc/source/ui/condformat/condformateasydlg.cxx 
b/sc/source/ui/condformat/condformateasydlg.cxx
index f8e45dd8cf63..0ef49f6a0e59 100644
--- a/sc/source/ui/condformat/condformateasydlg.cxx
+++ b/sc/source/ui/condformat/condformateasydlg.cxx
@@ -279,6 +279,8 @@ 
ConditionalFormatEasyDialog::ConditionalFormatEasyDialog(SfxBindings* pBindings,
     if (format)
     {
         const ScFormatEntry* entry = format->GetEntry(mnEntryIndex);
+        if (!entry)
+            return;
         ScFormatEntry::Type type = entry->GetType();
         if (type == ScFormatEntry::Type::Condition)
         {

Reply via email to