Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 439238 - NPE in Control.internal_new_GC
Summary: NPE in Control.internal_new_GC
Status: CLOSED DUPLICATE of bug 434393
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Mac OS X
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-09 09:28 EDT by Thomas Singer CLA
Modified: 2014-07-14 13:09 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Singer CLA 2014-07-09 09:28:53 EDT
We get a couple of exception reported like these:

java.lang.NullPointerException
	at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:2134)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:171)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:134)
	at org.eclipse.swt.custom.CLabel.getTotalSize(CLabel.java:260)
	at org.eclipse.swt.custom.CLabel.computeSize(CLabel.java:154)
...

java.lang.NullPointerException
	at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:2134)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:171)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:134)
	at org.eclipse.swt.widgets.Tree.setScrollWidth(Tree.java:2968)
	at org.eclipse.swt.widgets.Tree.sendMeasureItem(Tree.java:2617)
	at org.eclipse.swt.widgets.Tree.drawInteriorWithFrame_inView(Tree.java:1039)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5801)
	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
	at org.eclipse.swt.widgets.Widget.drawRect(Widget.java:742)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5534)
	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend_bool(Native Method)
	at org.eclipse.swt.internal.cocoa.NSRunLoop.runMode(NSRunLoop.java:42)
	at org.eclipse.swt.widgets.Display.sleep(Display.java:4610)

Maybe this is some variant of the "no more handles" problem.
Comment 1 Thomas Singer CLA 2014-07-14 13:09:35 EDT

*** This bug has been marked as a duplicate of bug 434393 ***