diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-21 09:16:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-21 11:55:10 +0000 |
commit | 4ea173180609df25a765c5a10889fc25863c659f (patch) | |
tree | 1e32162f77184b9f71b412c728317a3ae923cb86 /svtools | |
parent | cdf7572996c553348deae7698f9b1170f5a105f2 (diff) |
coverity#1255389 Dereference null return value
Change-Id: I3b2a4e69a1c86d9b9ce9f51d6f321bda9e18f8b5
Diffstat (limited to 'svtools')
-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 0c96f159eb28..3c4645b96d60 100644 --- a/svtools/qa/unit/GraphicObjectTest.cxx +++ b/svtools/qa/unit/GraphicObjectTest.cxx @@ -168,6 +168,7 @@ void GraphicObjectTest::testSizeBasedAutoSwap() if( aNodes[nIndex]->IsGrfNode() ) { SwGrfNode* pGrfNode = aNodes[nIndex]->GetGrfNode(); + CPPUNIT_ASSERT(pGrfNode); if( !pGrafObj1 ) { pGrafObj1 = &pGrfNode->GetGrfObj(); |