Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 489537

Summary: [GTK] NullPointerException when closing ControlExample
Product: [Eclipse Project] Platform Reporter: Eric Williams <ericwill>
Component: SWTAssignee: Sravan Kumar Lakkimsetti <sravankumarl>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sravankumarl
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 479614    

Description Eric Williams CLA 2016-03-14 07:55:40 EDT
On GTK when closing ControlExample, there is a NullPointerException printed in the console when closing the window:

Exception in thread "main" java.lang.NullPointerException
	at org.eclipse.swt.graphics.Device.release(Device.java:942)
	at org.eclipse.swt.widgets.Display.release(Display.java:3643)
	at org.eclipse.swt.graphics.Device.dispose(Device.java:266)
	at org.eclipse.swt.examples.controlexample.ControlExample.main(ControlExample.java:225)


Seems to be related to changes from bug 479614. Happens on both GTK2 and GTK3.
Comment 1 Sravan Kumar Lakkimsetti CLA 2016-03-14 08:39:21 EDT
Found the root cause of this problem will be fixed in next I-build
Comment 2 Sravan Kumar Lakkimsetti CLA 2016-03-14 10:03:50 EDT
This problem is resolved with the commit http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=9d63ddebbbc78586d655064ebea466c7c1f28aba