ExceptionInInitializerError in Dialog [message #296531] |
Fri, 23 December 2005 11:10  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02914 seconds