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

Bug 303899

Summary: RMS demo fail to start with NPE
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2010-02-25 08:50:13 EST
After the JFace 3.6 adoption the RMS demo is no longer started. A NPE occur on startup:
java.lang.NullPointerException
	at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:376)
	at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:153)
	at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:125)
	at org.eclipse.rap.rms.ui.internal.Activator.getImageRegistry(Activator.java:333)
	at org.eclipse.rap.rms.ui.internal.Activator.initializeImageRegistry(Activator.java:199)
	at org.eclipse.rap.rms.ui.internal.startup.RMS.createUI(RMS.java:38)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:253)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:117)
	at java.lang.Thread.run(Thread.java:619)
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:80)
Comment 1 Ivan Furnadjiev CLA 2010-02-25 11:58:54 EST
Creating the display before initializing the image registry in RMS.java solves the problem. Need to check if the current code is a valid use case.
Comment 2 RĂ¼diger Herrmann CLA 2010-02-27 15:03:01 EST
Thanks for reporting this Ivan. I fixed it as you suggested.
Changes are in CVS HEAD