| Summary: | NPE in Link traversal code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Felipe Heidrich <eclipse.felipe> | ||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Silenio_Quarti | ||||
| Version: | 4.0 | Flags: | Silenio_Quarti:
review+
|
||||
| Target Milestone: | 3.6 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Felipe Heidrich
snippet:
public static void main (String[] args) {
Display display = new Display();
final Shell shell = new Shell(display);
new Link(shell, SWT.NONE);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
stack:
Exception in thread "main" java.lang.NullPointerException
at org.eclipse.swt.widgets.Link.traversalCode(Link.java:649)
at org.eclipse.swt.widgets.Control.isTabGroup(Control.java:2022)
at org.eclipse.swt.widgets.Control.computeTabList(Control.java:794)
at org.eclipse.swt.widgets.Composite.computeTabList(Composite.java:262)
at org.eclipse.swt.widgets.Control.traverseGroup(Control.java:4243)
at org.eclipse.swt.widgets.Shell.open(Shell.java:1174)
at misc.prs.Main.main3353(Main.java:29)
at misc.prs.Main.main(Main.java:19)
Created attachment 167309 [details]
patch
Fixed in HEAD > 20100506 |