summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-24 03:00:32 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-24 03:08:51 +0100
commitb984cb56d70dec578103dae885ec5868582c0ffe (patch)
tree50bab2ade840ec2d34b627b05ab08c5e7b09db04
parent99894610482eb8f631083c327ca2f0310391eb23 (diff)
be safe against invalid cond format cell info, fdo#58686
Change-Id: Ie89aee95755d9abd3b82062fac271cfe774174ec
-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 0fc5dfc79e7f..3940c0cd58ee 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1794,6 +1794,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)
{