diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 10:17:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:57:27 +0000 |
commit | 3ed04054d3b10a932e0a74d765bc7575ebcc4e85 (patch) | |
tree | 367a660d747bdb42cab551b90283a3566ceb27c5 /vcl | |
parent | 88a7724f6d10cdb49234e4ef298d9b5ca10d06a2 (diff) |
coverity#1187658 Dereference after null check
Change-Id: I4924903f1763c6afc975efb45e43223ee3829951
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/splitwin.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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; |