coverity#440991 Dereference after null check

Change-Id: I3b911e4bc1e6c2eccf4b9655f12162936fc5a946
This commit is contained in:
Caolán McNamara
2014-02-10 20:51:29 +00:00
parent 9e6dfbd244
commit c748d6115e

View File

@@ -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 );