Community
Participate
Working Groups
Build Identifier: SWT 3.7M7 Shell.setEnabled(enable) has this code: if (enabled && window.isMainWindow()) window can be null for embedded case and should be taken into account. Being able to disable the control hierarchy (and not setEnabled on the control itself) is a useful capability which is working on other SWT ports. I may be wrong but I think this is a regression for the Mac port. Reproducible: Always Steps to Reproduce: 1. disable an embedded shell 2. enable it -> NPE
Created attachment 194452 [details] Simple test case showing the issue
Anyone to help? I have a certain number of users hitting this bug and the fix is simply to change the test to: if (enabled && window != null && window.isMainWindow())
Its a side effect of fix for Bug 331676. Fixed in 3.8 by adding the missing null check. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=b3a36839847c602b69686b1a6d73c49d37144b5d
Hi Silenio, can you please review for 3.7.2?
Pushed fix to R3_7_maintenance branch > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?h=R3_7_maintenance&id=3ead1d28c6d3e0f463be961b8e3be1e19d2e7d04