coverity#736161 Dereference null return value
Change-Id: I6ce18d8446944e6b491ccd3973c5fa7e1413f073
This commit is contained in:
@@ -1442,6 +1442,9 @@ void ImplCopyItem( Menu* pThis, const Menu& rMenu, sal_uInt16 nPos, sal_uInt16 n
|
||||
|
||||
MenuItemData* pData = rMenu.GetItemList()->GetData( nId );
|
||||
|
||||
if (!pData)
|
||||
return;
|
||||
|
||||
if ( eType == MENUITEM_STRINGIMAGE )
|
||||
pThis->InsertItem( nId, pData->aText, pData->aImage, pData->nBits, pData->sIdent, nNewPos );
|
||||
else if ( eType == MENUITEM_STRING )
|
||||
|
Reference in New Issue
Block a user