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

coverity#736161 Dereference null return value

Change-Id: I6ce18d8446944e6b491ccd3973c5fa7e1413f073
üst 315eea12
...@@ -1442,6 +1442,9 @@ void ImplCopyItem( Menu* pThis, const Menu& rMenu, sal_uInt16 nPos, sal_uInt16 n ...@@ -1442,6 +1442,9 @@ void ImplCopyItem( Menu* pThis, const Menu& rMenu, sal_uInt16 nPos, sal_uInt16 n
MenuItemData* pData = rMenu.GetItemList()->GetData( nId ); MenuItemData* pData = rMenu.GetItemList()->GetData( nId );
if (!pData)
return;
if ( eType == MENUITEM_STRINGIMAGE ) if ( eType == MENUITEM_STRINGIMAGE )
pThis->InsertItem( nId, pData->aText, pData->aImage, pData->nBits, pData->sIdent, nNewPos ); pThis->InsertItem( nId, pData->aText, pData->aImage, pData->nBits, pData->sIdent, nNewPos );
else if ( eType == MENUITEM_STRING ) else if ( eType == MENUITEM_STRING )
......
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