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

Bug 410993

Summary: NPE in BrowserNavigationImpl.beforeDestroy when shutdown OSGi in console
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.2 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard: protocol

Description Ivan Furnadjiev CLA 2013-06-18 04:50:00 EDT
Reproducible with Controls Demo. Start the Controls Demo and type "shutdown" in OSGi console. NPE is thrown:
java.lang.NullPointerException
	at org.eclipse.rap.rwt.internal.client.BrowserNavigationImpl.beforeDestroy(BrowserNavigationImpl.java:120)
	at org.eclipse.rap.rwt.internal.service.UISessionImpl.fireBeforeDestroy(UISessionImpl.java:328)
	at org.eclipse.rap.rwt.internal.service.UISessionImpl.destroy(UISessionImpl.java:310)
	at org.eclipse.rap.rwt.internal.service.UISessionImpl.access$1(UISessionImpl.java:306)
	at org.eclipse.rap.rwt.internal.service.UISessionImpl$1.run(UISessionImpl.java:107)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.processShutdown(UIThread.java:171)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:317)
	at java.lang.Thread.run(Thread.java:722)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:104)
getApplicationContext() returns null.
Comment 1 Ivan Furnadjiev CLA 2013-06-19 05:29:54 EDT
Fixed in master with commit 047c0c7f9b75ff4e9340825ed1be2aade14668f6 and 3d12981c0293e30943b411258643363234b17d0a. BrowserNavigation protocol "addToHistory" call operation parameter "entries" has been replaced with single entry "state" and "title" parameters:
["call","rwt.client.BrowserNavigation","addToHistory",{"state":"Dialogs","title":null}]