Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345101 - IEntryPoint that does not create a Display causes NullPointerException
Summary: IEntryPoint that does not create a Display causes NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 RC1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 04:34 EDT by Rüdiger Herrmann CLA
Modified: 2011-05-09 04:39 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 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.