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

coverity#1213247 Dereference null return value

Change-Id: I039536322fd1c9c786c4cd7088807aee7e2e929d
üst 3e40e67b
...@@ -321,10 +321,13 @@ void SAL_CALL ControlMenuController::statusChanged( const FeatureStateEvent& Eve ...@@ -321,10 +321,13 @@ void SAL_CALL ControlMenuController::statusChanged( const FeatureStateEvent& Eve
} }
} }
VCLXPopupMenu* pPopupMenu = NULL;
if ( nMenuId ) if ( nMenuId )
{ pPopupMenu = (VCLXPopupMenu *)VCLXMenu::GetImplementation( m_xPopupMenu );
VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXMenu::GetImplementation( m_xPopupMenu );
if (pPopupMenu)
{
SolarMutexGuard aSolarMutexGuard; SolarMutexGuard aSolarMutexGuard;
PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu(); PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();
......
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