diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 10:32:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 10:44:23 +0100 |
commit | e754e43662523b0d2504beb0d4875e3c10ecf6a2 (patch) | |
tree | 412d393cb09bcb4e30368e96b73f23711a36cc42 /vcl | |
parent | 3c56e2686a3556653c6c627264e7503df31032fd (diff) |
coverity#1209712 Dereference null return value
Change-Id: I9ef54e4086e1b441e1bd5ccbebcd512d3a01bb47
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/menu.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 57b912161bfb..9a7e73b6d27b 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3646,7 +3646,10 @@ sal_uInt16 PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, sal_uLong size_t nPos = 0; pData = pItemList->GetData( pData->nId, nPos ); assert(pData); - pData->bIsTemporary = true; + if (pData) + { + pData->bIsTemporary = true; + } ImplCallEventListeners(VCLEVENT_MENU_SUBMENUCHANGED, nPos); } } |