Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ExceptionInInitializerError in Dialog
ExceptionInInitializerError in Dialog [message #296531] Fri, 23 December 2005 11:10 Go to next message
Eclipse UserFriend
Originally posted by: rony2006.012.net.il

Hi

I'm running standalone application in eclipse v3.1.

--- a single class that extends a JFace Dialog.

i'm getting the following exception:

java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at
org.eclipse.jface.resource.JFaceResources.getResources(JFace Resources.java:183)
at
org.eclipse.jface.resource.JFaceResources.getImageRegistry(J FaceResources.java:309)
at org.eclipse.jface.dialogs.Dialog.<clinit>(Dialog.java:135)
Exception in thread "main"

the problem seems to be that when calling:
new ImageRegistry(getResources(Display.getCurrent()));

Display.getCurrent() returns null value.

is there a way to fix this?

thanks for any help and suggestions.

Roni
Re: ExceptionInInitializerError in Dialog [message #296803 is a reply to message #296531] Tue, 03 January 2006 09:39 Go to previous message
Eclipse UserFriend
Have you created a display before this code is called? Another option
is this code is not being called in the UI thread.

Later,
PW
Previous Topic:Missing WizardNewFileCreationPage
Next Topic:Setting Preferences by "-plugincustomization" runtime option
Goto Forum:
  


Current Time: Sun Jun 08 07:51:11 EDT 2025

Powered by FUDForum. Page generated in 0.07476 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top