summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-12 13:10:20 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 14:26:47 +0000
commit27fae00bf28def2c23228101dac7cf8280c498b5 (patch)
treee6e8316a533ffaf24d7cfaa2a7ebd220270d559d /svtools
parent2842e32490ad23602065e29d2cfe38adfeb483cb (diff)
coverity#441136 Dereference after null check
Change-Id: I81a1a70094ae6b4ed685ae3fe88c645b160955bf
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index 1760056e3e27..26438c012534 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -829,7 +829,7 @@ void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
pBar->Draw(pDev, aHeaderPos, aHeaderSize, nFlags);
// draw the "upper left cell" (the intersection between the header bar and the handle column)
- if (( pFirstCol->GetId() == 0 ) && ( pFirstCol->Width() > 4 ))
+ if (pFirstCol && (pFirstCol->GetId() == 0) && (pFirstCol->Width() > 4))
{
ButtonFrame aButtonFrame( aRealPos,
Size( pFirstCol->Width()-1, nTitleHeight-1 ),