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

Bug 345101

Summary: IEntryPoint that does not create a Display causes NullPointerException
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: 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:

Description Rüdiger Herrmann CLA 2011-05-09 04:34:00 EDT
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)
Comment 1 Rüdiger Herrmann CLA 2011-05-09 04:39:30 EDT
Render#execute() was changed to do nothing if no display is present. 
Changes are in CVS HEAD.