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

Bug 262089

Summary: [Display] dispose() causes NPE
Product: [RT] RAP Reporter: Benjamin Muskalla <b.muskalla>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 1.2   
Target Milestone: 1.3 M3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Test case none

Description Benjamin Muskalla CLA 2009-01-22 16:38:46 EST
Disposing the display after the readAndDispatch loop causes the following NPE

java.lang.NullPointerException
	at org.eclipse.rwt.internal.lifecycle.DisplayUtil.getLCA(DisplayUtil.java:32)
	at org.eclipse.rwt.internal.lifecycle.Render.execute(Render.java:28)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:206)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:117)
	at java.lang.Thread.run(Unknown Source)


The NPE happens in the render phase when trying to continue the lifecycle after createUI has been called (see UIThreadController)
Comment 1 Rüdiger Herrmann CLA 2009-05-04 19:25:27 EDT
Created attachment 134347 [details]
Test case
Comment 2 Rüdiger Herrmann CLA 2009-05-05 05:09:47 EDT
May be related to bug 225167
Comment 3 Rüdiger Herrmann CLA 2009-10-07 09:27:00 EDT
Fixed in CVS HEAD