JFace Dialog ExceptionInInitializerError [message #465938] |
Fri, 23 December 2005 15:32 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03088 seconds