From 83924113beb0ebfd6abbe6f8ca44fb929da0934c Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 25 Jan 2014 01:08:22 -0600 Subject: coverity#704842 Dereference after NULL check Change-Id: If74a78ffe0bcbd936448ed70b8fc796561fc7001 --- svx/source/unodraw/unopool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/unodraw/unopool.cxx b/svx/source/unodraw/unopool.cxx index 438bd49f14a4..08a610cfe165 100644 --- a/svx/source/unodraw/unopool.cxx +++ b/svx/source/unodraw/unopool.cxx @@ -188,7 +188,7 @@ void SvxUnoDrawPool::putAny( SfxItemPool* pPool, const comphelper::PropertyMapEn { ::std::auto_ptr pNewItem( pPool->GetDefaultItem( nWhich ).Clone() ); sal_uInt8 nMemberId = pEntry->mnMemberId & (~SFX_METRIC_ITEM); - if( !pPool || (pPool->GetMetric(nWhich) == SFX_MAPUNIT_100TH_MM) ) + if( pPool->GetMetric(nWhich) == SFX_MAPUNIT_100TH_MM ) nMemberId &= (~CONVERT_TWIPS); if( !pNewItem->PutValue( aValue, nMemberId ) ) -- cgit