| Summary: | IEntryPoint that does not create a Display causes NullPointerException | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 1.4 RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Render#execute() was changed to do nothing if no display is present. Changes are in CVS HEAD. |
An 'empty' entry point like the one below, causes a NullPointerException when it is used. class MyEntryPoint implements IEntryPoint { public int createUI() { return 0; } } Stacktrace --- java.lang.NullPointerException at org.eclipse.rwt.internal.lifecycle.DisplayUtil.getLCA(DisplayUtil.java:29) at org.eclipse.rwt.internal.lifecycle.Render.execute(Render.java:28) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:190) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:89) at java.lang.Thread.run(Unknown Source) at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)