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

Bug 385283

Summary: NPE when canceling the Font Dialog
Product: [RT] RAP Reporter: Christian Schwarz <chriss.dev>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Christian Schwarz CLA 2012-07-17 06:50:55 EDT
Build Identifier: 20122506-0113

java.lang.NullPointerException
	org.eclipse.rap.examples.pages.DialogExamplePage$26.dialogClosed(DialogExamplePage.java:490)
	org.eclipse.swt.widgets.Dialog$DialogAdapter$1.shellClosed(Dialog.java:75)
	org.eclipse.swt.events.ShellEvent.dispatchToObserver(ShellEvent.java:75)
	org.eclipse.rwt.internal.events.Event.processEvent(Event.java:46)
	org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:186)
	org.eclipse.swt.widgets.Shell$1.run(Shell.java:719)
	org.eclipse.rwt.lifecycle.ProcessActionRunner.add(ProcessActionRunner.java:32)
	org.eclipse.swt.widgets.Shell.close(Shell.java:716)
	org.eclipse.swt.widgets.FontDialog$7.widgetSelected(FontDialog.java:432)
	org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:191)
	org.eclipse.rwt.internal.events.Event.processEvent(Event.java:46)
	org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:186)
	org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:208)
	org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1145)
	org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1135)
	org.eclipse.rap.examples.internal.MainUi.createUI(MainUi.java:66)
	org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)
	java.lang.Thread.run(Thread.java:619)
	org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)

Reproducible: Always

Steps to Reproduce:
1. goto -> http://rap.eclipsesource.com/rapdemo/examples#dialog
2. open the FontDialog
3. cancel it

-> NPE
Comment 1 Ivan Furnadjiev CLA 2012-07-17 07:36:50 EDT
Fixed with commit b9c7cb536899f85acca8e4c105da286dd4d1e10e. The fix will be available in online demo when we redeploy it soon.