From 27fae00bf28def2c23228101dac7cf8280c498b5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 12 Feb 2014 13:10:20 +0000 Subject: coverity#441136 Dereference after null check Change-Id: I81a1a70094ae6b4ed685ae3fe88c645b160955bf --- svtools/source/brwbox/brwbox2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools') 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 ), -- cgit