coverity#440991 Dereference after null check
Change-Id: I3b911e4bc1e6c2eccf4b9655f12162936fc5a946
This commit is contained in:
@@ -2346,7 +2346,7 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt)
|
|||||||
nDelta--;
|
nDelta--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( nDelta )
|
if( nDelta && pNewCursor )
|
||||||
{
|
{
|
||||||
DBG_ASSERT(pNewCursor&&(sal_uLong)pNewCursor!=(sal_uLong)pCursor,"Cursor?");
|
DBG_ASSERT(pNewCursor&&(sal_uLong)pNewCursor!=(sal_uLong)pCursor,"Cursor?");
|
||||||
aSelEng.CursorPosChanging( bShift, bMod1 );
|
aSelEng.CursorPosChanging( bShift, bMod1 );
|
||||||
|
Reference in New Issue
Block a user