summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-28 10:24:16 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-28 13:13:59 +0000
commit315eea127319e57fa98ddc87103dc8a9c99f33c7 (patch)
tree63d2a2fd6940d090df59cb250e9cb34608471b27 /vcl/source
parent2e82733434cb1488cecd41d438a10b7b02a436fc (diff)
coverity#736162 Dereference null return value
Change-Id: If2a8f2ba79f3efa557cacb29553ba70e233f88f5
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/menu.cxx2
1 files changed, 1 insertions, 1 deletions
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 );