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

coverity#982472 Dereference after null check

Change-Id: Ie797775184260fe5b5024d85be4244a56aee274a
üst 056a9a8b
......@@ -621,6 +621,7 @@ void SvImpLBox::SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect )
pViewDataNewCur= pView->GetViewDataEntry(pEntry);
if( pEntry &&
pEntry == pCursor &&
pViewDataNewCur &&
pViewDataNewCur->HasFocus() &&
pViewDataNewCur->IsSelected())
{
......@@ -645,7 +646,8 @@ void SvImpLBox::SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect )
pCursor = pEntry;
if( pCursor )
{
pViewDataNewCur->SetFocus( true );
if (pViewDataNewCur)
pViewDataNewCur->SetFocus( true );
if(!bForceNoSelect && bSimpleTravel && !(nFlags & F_DESEL_ALL) && GetUpdateMode())
{
pView->Select( pCursor, true );
......
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