Kaydet (Commit) c748d611 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#440991 Dereference after null check

Change-Id: I3b911e4bc1e6c2eccf4b9655f12162936fc5a946
üst 9e6dfbd2
...@@ -2346,7 +2346,7 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt) ...@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment