cid#1448398 Dereference before null check
Change-Id: I55bddd8f152f34919e9818048aaf2a77a94ccaf0 Reviewed-on: https://gerrit.libreoffice.org/76130 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -119,13 +119,13 @@ namespace accessibility
|
||||
SolarMethodGuard aGuard(getMutex());
|
||||
ensureIsAlive();
|
||||
|
||||
if ( !implIsValidIndex( nIndex, implGetText().getLength() ) )
|
||||
throw IndexOutOfBoundsException();
|
||||
|
||||
css::awt::Rectangle aRect;
|
||||
|
||||
if ( mpBrowseBox )
|
||||
{
|
||||
if ( !implIsValidIndex( nIndex, implGetText().getLength() ) )
|
||||
throw IndexOutOfBoundsException();
|
||||
|
||||
aRect = AWTRectangle( mpBrowseBox->GetFieldCharacterBounds( getRowPos(), getColumnPos(), nIndex ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user