coverity#1213242 Dereference null return value
Change-Id: I23ce35dbeadca1eea4c67d7d70acbf5ce3a82ac8
This commit is contained in:
parent
6903b84809
commit
bb7dad11e1
@ -436,7 +436,8 @@ throw ( css::uno::RuntimeException, std::exception )
|
|||||||
( VCLXPopupMenu * ) VCLXMenu::GetImplementation( m_xPopupMenu );
|
( VCLXPopupMenu * ) VCLXMenu::GetImplementation( m_xPopupMenu );
|
||||||
|
|
||||||
SolarMutexGuard aSolarMutexGuard;
|
SolarMutexGuard aSolarMutexGuard;
|
||||||
PopupMenu* pVCLPopupMenu = dynamic_cast< PopupMenu * >( pTkPopupMenu->GetMenu() );
|
PopupMenu* pVCLPopupMenu = pTkPopupMenu ?
|
||||||
|
dynamic_cast< PopupMenu * >( pTkPopupMenu->GetMenu() ) : NULL;
|
||||||
if ( pVCLPopupMenu )
|
if ( pVCLPopupMenu )
|
||||||
pMenuAttributes = reinterpret_cast< MenuConfiguration::Attributes* >(
|
pMenuAttributes = reinterpret_cast< MenuConfiguration::Attributes* >(
|
||||||
pVCLPopupMenu->GetUserValue( pVCLPopupMenu->GetCurItemId() ) );
|
pVCLPopupMenu->GetUserValue( pVCLPopupMenu->GetCurItemId() ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user