coverity#704640 Dereference after null check

Change-Id: I05b932002ff8176d76f842dcd57ea39c4112f181
This commit is contained in:
Caolán McNamara
2014-02-23 13:27:09 +00:00
parent fe56219fcc
commit 324f33cb44

View File

@@ -3402,7 +3402,7 @@ sal_Bool PPTNumberFormatCreator::ImplGetExtNumberFormat( SdrPowerPointImport& rM
if ( nBuBlip != 0xffff ) // set graphical bullet
{
Graphic aGraphic;
if ( pParaProv->GetGraphic( nBuBlip, aGraphic ) )
if ( pParaProv && pParaProv->GetGraphic( nBuBlip, aGraphic ) )
{
SvxBrushItem aBrush( aGraphic, GPOS_MM, SID_ATTR_BRUSH );
rNumberFormat.SetGraphicBrush( &aBrush );