summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-03 18:57:45 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-03 19:07:01 +0100
commit81fd504f0b39130770144ac73c39e7309a836731 (patch)
tree54017d9ca2d8b8f8f54a2371da5aaf3b4e19bdb8 /sc/qa/unit
parent7fe8d9328c619523897aa0e84b4bb9f5ab11b743 (diff)
be more forgiving for empty cells in tests with csv files
Change-Id: I69f66cc580da0aab79e7df15ad5201624ce0f9f2
Diffstat (limited to 'sc/qa/unit')
-rw-r--r--sc/qa/unit/helper/csv_handler.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/unit/helper/csv_handler.hxx b/sc/qa/unit/helper/csv_handler.hxx
index 4d16576babfa..8493f104992e 100644
--- a/sc/qa/unit/helper/csv_handler.hxx
+++ b/sc/qa/unit/helper/csv_handler.hxx
@@ -44,6 +44,9 @@ rtl::OUString getConditionalFormatString(ScDocument* pDoc, SCCOL nCol, SCROW nRo
rtl::OUString aString;
Color* pColor;
ScBaseCell* pCell = pDoc->GetCell(ScAddress(nCol, nRow, nTab));
+ if(!pCell)
+ return aString;
+
const SfxItemSet* pCondSet = pDoc->GetCondResult( nCol, nRow, nTab );
const ScPatternAttr* pPattern = pDoc->GetPattern(nCol, nRow, nTab);
SvNumberFormatter* pFormatter = pDoc->GetFormatTable();