From 315eea127319e57fa98ddc87103dc8a9c99f33c7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 28 Mar 2014 10:24:16 +0000 Subject: coverity#736162 Dereference null return value Change-Id: If2a8f2ba79f3efa557cacb29553ba70e233f88f5 --- vcl/source/window/menu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 8b52b46b6f66..430bc469b5d6 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3528,7 +3528,7 @@ void PopupMenu::SelectEntry( sal_uInt16 nId ) { size_t nPos = 0; MenuItemData* pData = GetItemList()->GetData( nId, nPos ); - if ( pData->pSubMenu ) + if (pData && pData->pSubMenu) ImplGetFloatingWindow()->ChangeHighlightItem( nPos, true ); else ImplGetFloatingWindow()->EndExecute( nId ); -- cgit