diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-02 15:38:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-02 16:18:57 +0000 |
commit | 6ee80e749a9ce6f56d53205ac1bd5d19429138a7 (patch) | |
tree | 336d895929414ff465cc751aeed9d9b56ed32ece | |
parent | 9e6c2369a177f2df16b046d7342fae8b26511bbb (diff) |
coverity#1272391 Dereference null return value
Change-Id: Id1c5a498ff5c25eefe2573e695f66d8922213f92
-rw-r--r-- | svtools/qa/unit/GraphicObjectTest.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svtools/qa/unit/GraphicObjectTest.cxx b/svtools/qa/unit/GraphicObjectTest.cxx index 036df77b8367..463a1ce2935c 100644 --- a/svtools/qa/unit/GraphicObjectTest.cxx +++ b/svtools/qa/unit/GraphicObjectTest.cxx @@ -262,6 +262,7 @@ void GraphicObjectTest::testTdf88935() if( aNodes[nIndex]->IsGrfNode() ) { SwGrfNode* pGrfNode = aNodes[nIndex]->GetGrfNode(); + CPPUNIT_ASSERT(pGrfNode); if( !pGraphObj1 ) { pGraphObj1 = &pGrfNode->GetGrfObj(); |