You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix NPEs in MenuItem#calculateRenderSize() and MenuItem#getMonitorZoom()
Previously, calculateRenderSize() and getMonitorZoom() of MenuItem used
getMenu() to get some context providing the relevant shell instead of
getParent(). Since that menu may be null when the MenuItem has no submenu
(e.g., PUSH, CHECK styles), an NPE might have been thrown.
This change replaces getMenu().getShell() with getParent().getShell(),
ensuring a valid shell is always used regardless of item type.
Fixes#2247
0 commit comments