sc/source/ui/condformat/condformateasydlg.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 0f862ccb485f7b35fa79435e92add1598a6c42f5 Author: Pranam Lashkari <[email protected]> AuthorDate: Tue Oct 29 06:16:59 2024 +0530 Commit: Andras Timar <[email protected]> CommitDate: Thu Oct 31 09:50:59 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 <[email protected]> Reviewed-by: Pranam Lashkari <[email protected]> (cherry picked from commit 69c6ce6d8c6c6a6f9e3f0ea1319dbdb2190ccaab) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175850 Reviewed-by: Andras Timar <[email protected]> Tested-by: Andras Timar <[email protected]> diff --git a/sc/source/ui/condformat/condformateasydlg.cxx b/sc/source/ui/condformat/condformateasydlg.cxx index 3adaf9cd8ffe..ff1aa81d510f 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) {
