diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-31 14:23:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-02 12:14:45 +0100 |
commit | 54ceedfb4d3c0e6df67b86fb422ec3209582fbfa (patch) | |
tree | 168d8cc3a1991d53cf3165f744accbbf1c0b46da /sc | |
parent | 9432b8d400dd38c2a96fce6aad77d4876072dd8c (diff) |
coverity#1233491 Dereference null return value
Change-Id: Ia02749585cb9694bddb21e4f040cf6e025046be1
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/subsequent_export-test.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx index 432bc753e02d..61c2afc48ba6 100644 --- a/sc/qa/unit/subsequent_export-test.cxx +++ b/sc/qa/unit/subsequent_export-test.cxx @@ -1959,8 +1959,8 @@ namespace { void testSheetProtection_Impl(ScDocument& rDoc) { CPPUNIT_ASSERT(rDoc.IsTabProtected(0)); - ScTableProtection* pTabProtection = rDoc.GetTabProtection(0); + CPPUNIT_ASSERT(pTabProtection); CPPUNIT_ASSERT(pTabProtection->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS)); CPPUNIT_ASSERT(!pTabProtection->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS)); } |