summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/cellsh1.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 16e0b0654eaf..a8056614bb04 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1792,6 +1792,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
{
// check if at least one existing conditional format has the same range
const ScConditionalFormat* pCondFormat = pList->GetFormat(*itr);
+ if(!pCondFormat)
+ continue;
+
const ScRangeList& rCondFormatRange = pCondFormat->GetRange();
if(rCondFormatRange == aRangeList)
{