Kaydet (Commit) 9fd10cca authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#1132661 Dereference after null check

Change-Id: Ida147599810b0aff4a7ebd00b90475b1c6cd1366
üst 014a0e5d
......@@ -841,21 +841,18 @@ void VCLXAccessibleList::UpdateSelection_Impl(sal_uInt16)
aOldValue <<= getAccessibleChild( (sal_Int32)m_nLastSelectedPos );
aNewValue <<= xNewAcc;
}
if (m_pListBoxHelper->IsInDropDown())
{
if ( aNewValue.hasValue() || aOldValue.hasValue() )
NotifyAccessibleEvent(
AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
aOldValue,
aNewValue );
//the SELECTION_CHANGED is not necessary
//NotifyAccessibleEvent( AccessibleEventId::SELECTION_CHANGED, Any(), Any() );
}
}
}
if (!m_pListBoxHelper->IsInDropDown())
{
}
else
{
if ( aNewValue.hasValue() || aOldValue.hasValue() )
NotifyAccessibleEvent(
AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
aOldValue,
aNewValue );
//the SELECTION_CHANGED is not necessary
//NotifyAccessibleEvent( AccessibleEventId::SELECTION_CHANGED, Any(), Any() );
}
}
// -----------------------------------------------------------------------------
......
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