summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-24 20:55:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-25 12:28:07 +0000
commitad58005cbe18ba1181de47bd949bfe154f1838a3 (patch)
tree9ca77d24a6ebadc545a6fa29795fb979c76b66b4 /vcl
parentf72947d5f651216f1ee004bee7f271c9e21c22dc (diff)
coverity#1158199 Dereference null return value
Change-Id: I87c5193ed4a605e85bb57bd0991725202c871966
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/menu.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index f0a4886dfaac..8287d7e9f993 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -3694,6 +3694,7 @@ sal_uInt16 PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, sal_uLong
0xFFFF, MENUITEM_STRING, 0, aTmpEntryText, Image(), NULL, 0xFFFF, OString() );
size_t nPos = 0;
pData = pItemList->GetData( pData->nId, nPos );
+ assert(pData);
pData->bIsTemporary = true;
ImplCallEventListeners(VCLEVENT_MENU_SUBMENUCHANGED, nPos);
}