Community
Participate
Working Groups
Build Identifier: 3.7 final NPE at org.eclipse.swt.widgets.Shell.createHandle(Shell.java:735) Using the simple test case attached, there is a NPE each time one tries to create a new Shell, see the terminal output attached with stackTrace. OS is Mac OS X 10.5.8 I've tried with: - Java 6 1.6.0_26 - 64-bit - Java 5 1.5.0_30 - 64-bit - Java 5 1.5_0_30 - 32-bit All with the same result. Some users reported the same issue with Java 6 1.6.0_24 - always on Leopard 10.5.8 The same code runs fine in Snow Leopard 10.6.8 This is a critical issue for us since it basically breaks Leopard compatibility. Thanks for having a look. Reproducible: Always Steps to Reproduce: 1. Run the sample code attached 2. NPE happends at line 32 - caused by Shell.createHandle(Shell.java:735)
Created attachment 200668 [details] Simple test case
Created attachment 200669 [details] Output of the terminal session during the test, with StackTrace
Null check is missing
Created attachment 200795 [details] patch Added null check and removed OS.HIWindowFindAtLocation() since we are not using it now.
Thanks Silenio! Fixed in 3.7.1. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?h=R3_7_maintenance&id=8fbd6f7b609d8d48b2b8f9d0d4bc600048b376cb Will release patch to 3.8 after M1.
Fixed in 3.8 HEAD. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d55f794d2ebb44732149f49b7c7bf54b59e5b91d
Verified in I20110912-2126