From 3ed04054d3b10a932e0a74d765bc7575ebcc4e85 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 27 Feb 2014 10:17:48 +0000 Subject: coverity#1187658 Dereference after null check Change-Id: I4924903f1763c6afc975efb45e43223ee3829951 --- vcl/source/window/splitwin.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index d5fc03b5d16a..7a4e09d3a0d0 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -1758,7 +1758,7 @@ void SplitWindow::ImplDrawAutoHide( bool bInPaint ) pSVData->maCtrlData.mpSplitHPinImgList->InsertFromHorizontalBitmap ( ResId( SV_RESID_BITMAP_SPLITHPIN, *pResMgr ), 4, &aNonAlphaMask ); } - } + } pImageList = pSVData->maCtrlData.mpSplitHPinImgList; } else @@ -1775,7 +1775,10 @@ void SplitWindow::ImplDrawAutoHide( bool bInPaint ) } } pImageList = pSVData->maCtrlData.mpSplitVPinImgList; - } + } + + if (!pImageList) + return; // Image ermitteln und zurueckgeben sal_uInt16 nId; -- cgit