Kaydet (Commit) 41df2c5c authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242425 Dereference after null check

Change-Id: I638d1601ac6cb5e43ee60f60869f6128060e6d05
üst 01c74f43
...@@ -2477,7 +2477,7 @@ vcl::Window* MenuBar::ImplCreate(vcl::Window* pParent, vcl::Window* pWindow, Men ...@@ -2477,7 +2477,7 @@ vcl::Window* MenuBar::ImplCreate(vcl::Window* pParent, vcl::Window* pWindow, Men
pMenu->pStartedFrom = 0; pMenu->pStartedFrom = 0;
pMenu->pWindow = pWindow; pMenu->pWindow = pWindow;
pMenuBarWindow->SetMenu(pMenu); pMenuBarWindow->SetMenu(pMenu);
long nHeight = pMenu->ImplCalcSize(pWindow).Height(); long nHeight = pWindow ? pMenu->ImplCalcSize(pWindow).Height() : 0;
// depending on the native implementation or the displayable flag // depending on the native implementation or the displayable flag
// the menubar windows is suppressed (ie, height=0) // the menubar windows is suppressed (ie, height=0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment