Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace Dialog ExceptionInInitializerError
JFace Dialog ExceptionInInitializerError [message #465938] Fri, 23 December 2005 15:32
Eclipse UserFriend
Originally posted by: roni.sternberg.attunity.com

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.

why isn't there a current display set, and how can i fix this ?

Roni
Previous Topic:Modeless shell problem on linux
Next Topic:JFace dialog without Ok/Cancel buttons
Goto Forum:
  


Current Time: Fri Apr 26 20:36:05 GMT 2024

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

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

Back to the top