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

coverity#1355504 Dereference before null check

Change-Id: I1f19fa2b55054bff7bb7e34d8a07dcf29fd229be
üst b20af8b6
...@@ -508,7 +508,7 @@ bool IconViewImpl::KeyInput( const KeyEvent& rKEvt ) ...@@ -508,7 +508,7 @@ bool IconViewImpl::KeyInput( const KeyEvent& rKEvt )
// if there is no next entry, take the current one // if there is no next entry, take the current one
// this ensures that in case of _one_ entry in the list, this entry is selected when pressing // this ensures that in case of _one_ entry in the list, this entry is selected when pressing
// the cursor key // the cursor key
if ( !pNewCursor && pCursor ) if (!pNewCursor)
pNewCursor = pCursor; pNewCursor = pCursor;
if( pNewCursor ) if( pNewCursor )
......
...@@ -2149,7 +2149,7 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt) ...@@ -2149,7 +2149,7 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt)
// if there is no next entry, take the current one // if there is no next entry, take the current one
// this ensures that in case of _one_ entry in the list, this entry is selected when pressing // this ensures that in case of _one_ entry in the list, this entry is selected when pressing
// the cursor key // the cursor key
if ( !pNewCursor && pCursor ) if (!pNewCursor)
pNewCursor = pCursor; pNewCursor = pCursor;
if( pNewCursor ) if( pNewCursor )
......
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