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

Bug 400211

Summary: nullpointer when changing from locale back to default
Product: [RT] RAP Reporter: Wim Anckaert <wian>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: 2.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Wim Anckaert CLA 2013-02-07 07:53:08 EST
URL: http://rap.eclipsesource.com/controlsdemo/controls#NLS

flow: 
selecting the default locale (even when it's allready selected)
The radio button has the text : "Default (Dutch)"

stacktrace:
java.lang.NullPointerException: The parameter 'locale' must not be null.
	org.eclipse.rap.rwt.internal.util.ParamCheck.notNull(ParamCheck.java:40)
	org.eclipse.rap.rwt.internal.service.UISessionImpl.setLocale(UISessionImpl.java:161)
	org.eclipse.rap.rwt.RWT.setLocale(RWT.java:554)
	org.eclipse.rap.demo.controls.NLSTab$1.widgetSelected(NLSTab.java:82)
	org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:262)
	org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:85)
	org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:695)
	org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:597)
	org.eclipse.swt.widgets.Display.executeNextEvent(Display.java:1145)
	org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1126)
	org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1116)
	org.eclipse.rap.demo.controls.ControlsDemo.createUI(ControlsDemo.java:59)
	org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:186)
	org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:298)
	java.lang.Thread.run(Thread.java:619)
	org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:104)
Comment 1 Ivan Furnadjiev CLA 2013-02-07 08:07:12 EST
The online version of the Controls Demo is outdated. We will update it in the next days to RAP 2.0. The problem is fixed in RAP 2.0.