Kaydet (Commit) 1732919a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1209803 Dereference before null check

Change-Id: Ie6435770edc709feba2ad191e00e03d637cf6154
üst d4e346b0
......@@ -541,7 +541,6 @@ void SdFiltersTest::testFdo72998()
SdrObjCustomShape *pObj = dynamic_cast<SdrObjCustomShape *>(pPage->GetObj(2));
CPPUNIT_ASSERT( pObj );
const SdrCustomShapeGeometryItem& rGeometryItem = (const SdrCustomShapeGeometryItem&)pObj->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY );
CPPUNIT_ASSERT_MESSAGE( "not a custom shape", pObj );
const ::com::sun::star::uno::Any* pViewBox = ((SdrCustomShapeGeometryItem&)rGeometryItem).GetPropertyValueByName( OUString( "ViewBox" ) );
CPPUNIT_ASSERT_MESSAGE( "Missing ViewBox", pViewBox );
com::sun::star::awt::Rectangle aViewBox;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment