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 );
|
||||
|
||||
SolarMutexGuard aSolarMutexGuard;
|
||||
PopupMenu* pVCLPopupMenu = dynamic_cast< PopupMenu * >( pTkPopupMenu->GetMenu() );
|
||||
PopupMenu* pVCLPopupMenu = pTkPopupMenu ?
|
||||
dynamic_cast< PopupMenu * >( pTkPopupMenu->GetMenu() ) : NULL;
|
||||
if ( pVCLPopupMenu )
|
||||
pMenuAttributes = reinterpret_cast< MenuConfiguration::Attributes* >(
|
||||
pVCLPopupMenu->GetUserValue( pVCLPopupMenu->GetCurItemId() ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user