From 6ee80e749a9ce6f56d53205ac1bd5d19429138a7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 2 Mar 2015 15:38:07 +0000 Subject: coverity#1272391 Dereference null return value Change-Id: Id1c5a498ff5c25eefe2573e695f66d8922213f92 --- svtools/qa/unit/GraphicObjectTest.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'svtools/qa') 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(); -- cgit