diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 17:10:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 20:37:35 +0100 |
commit | 3d39e41e1f07c481d741678b340755dfaef7e4f7 (patch) | |
tree | 3f18d8600798c81f00e202f3da30efe2c4ba7b33 /sc/qa | |
parent | 4dc0263505d05bef61d8dd7c392b168edb0a3724 (diff) |
coverity#1209494 Explicit null dereferenced
Change-Id: I9e51f2af30f1e0a38079d76db93bac4fe65d13b2
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index d8f143749301..aa7ac1a0a680 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -5072,6 +5072,8 @@ void Test::testSortWithCellFormats() return false; } + CPPUNIT_ASSERT(pItem); + if (static_cast<const SvxWeightItem*>(pItem)->GetEnumValue() != WEIGHT_BOLD) { cerr << "Font weight should be bold." << endl; @@ -5096,6 +5098,8 @@ void Test::testSortWithCellFormats() return false; } + CPPUNIT_ASSERT(pItem); + if (static_cast<const SvxPostureItem*>(pItem)->GetEnumValue() != ITALIC_NORMAL) { cerr << "Italic should be applied.." << endl; |