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

coverity#1132661 Dereference after null check

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