diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 17:32:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 17:32:20 +0000 |
commit | 5b76acefbaa3d01baa50337441cdef81bdadd145 (patch) | |
tree | 38391377a0ac60c8d2d7e56e735b7d287664e212 /cui | |
parent | 7d7d6cfc2ce58a7a4a26c3d5d1ac7682785593a8 (diff) |
coverity#1158202 Dereference null return value
Change-Id: I7a39b28cd295d0ab2dd4ba54fd9ff312f89764b7
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpline.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx index 458b6b920d93..5735bdbfc83d 100644 --- a/cui/source/tabpages/tpline.cxx +++ b/cui/source/tabpages/tpline.cxx @@ -1720,9 +1720,10 @@ IMPL_STATIC_LINK(SvxLineTabPage, GraphicArrivedHdl_Impl, SvxBrushItem*, pItem) } if( pBmpInfo ) { - if( pItem->GetGraphic() ) + const Graphic* pGraphic = pItem->GetGraphic(); + if (pGraphic) { - Bitmap aBitmap(pItem->GetGraphic()->GetBitmap()); + Bitmap aBitmap(pGraphic->GetBitmap()); Size aSize(aBitmap.GetSizePixel()); if(aSize.Width() > MAX_BMP_WIDTH || aSize.Height() > MAX_BMP_HEIGHT) { |