summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-31 19:14:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-31 19:14:02 +0000
commiteaf1c5f85bcf33fbb7e0ad0d6de4b33ae07445ae (patch)
tree36505d528f58fdf292ff6b9266fee7b76c55c8e4 /extensions
parentfed1ed0a17a770e9b4c75ef4737032f9ad2e154a (diff)
coverity#1267680 Dereference before null check
Change-Id: I4a7e8751a5a6a93bd0cb8208a06a7c4fd30ef1b4
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/ui/updatecheckui.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx
index cccb0342ccbe..6f6d30bf75d4 100644
--- a/extensions/source/update/ui/updatecheckui.cxx
+++ b/extensions/source/update/ui/updatecheckui.cxx
@@ -735,8 +735,8 @@ IMPL_LINK( UpdateCheckUI, ApplicationEventHdl, VclSimpleEvent *, pEvent)
if ( pWindow && pWindow->IsTopWindow() )
{
SystemWindow *pSysWin = pWindow->GetSystemWindow();
- MenuBar *pMBar = pSysWin->GetMenuBar();
- if ( pSysWin && pMBar )
+ MenuBar *pMBar = pSysWin ? pSysWin->GetMenuBar() : NULL;
+ if (pMBar)
{
AddMenuBarIcon( pSysWin, true );
}