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

Bug 328038

Summary: Controls demo list tab can crash
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.4   
Target Milestone: 1.4 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Tim Buschtoens CLA 2010-10-18 10:03:34 EDT
Enter a non-number character in the "set top index" field and click the button.
Result:

HTTP ERROR 500

Problem accessing /rap. Reason:

    For input string: "f"

Caused by:

java.lang.NumberFormatException: For input string: "f"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at org.eclipse.rap.demo.controls.ListTab$6.widgetSelected(ListTab.java:226)
	at org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:194)
	at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:44)
	at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:161)
	at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:201)
	at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1100)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1090)
	at org.eclipse.rap.demo.controls.ControlsDemo.createUI(ControlsDemo.java:40)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:245)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:114)
	at java.lang.Thread.run(Unknown Source)
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
Comment 1 Ivan Furnadjiev CLA 2010-10-18 10:17:03 EDT
Fixed in CVS HEAD.
Comment 2 Ivan Furnadjiev CLA 2010-10-18 10:17:16 EDT
.