coverity#736161 Dereference null return value

Change-Id: I6ce18d8446944e6b491ccd3973c5fa7e1413f073
This commit is contained in:
Caolán McNamara
2014-03-28 10:25:23 +00:00
parent 315eea1273
commit f1fe85ec8d

View File

@@ -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 )