coverity#1158253 Dereference before null check

Change-Id: If653cc6dc0b53f66728500d779460ee352924947
This commit is contained in:
Caolán McNamara
2014-01-24 13:12:01 +00:00
parent 269451915f
commit e9ab0dbfec

View File

@@ -4079,13 +4079,9 @@ void SvTreeListBox::FillAccessibleEntryStateSet( SvTreeListEntry* pEntry, ::utl:
rStateSet.AddState( AccessibleStateType::ENABLED );
rStateSet.AddState( AccessibleStateType::FOCUSABLE );
rStateSet.AddState( AccessibleStateType::SELECTABLE );
SvViewDataEntry* pViewDataNewCur = 0;
if( pEntry )
{
pViewDataNewCur = GetViewDataEntry(pEntry);
if (pViewDataNewCur && pViewDataNewCur->HasFocus())
rStateSet.AddState( AccessibleStateType::FOCUSED );
}
SvViewDataEntry* pViewDataNewCur = GetViewDataEntry(pEntry);
if (pViewDataNewCur && pViewDataNewCur->HasFocus())
rStateSet.AddState( AccessibleStateType::FOCUSED );
}
}