Page 1 of 1

Get NullPointer by starting application

Posted: Thu Nov 19, 2015 8:33 pm
by Denis
Hi,
we are using Eclipse oXygen Author 17.1.

By starting the the application we get the following Nullpointer:

Code: Select all


0 WARN [ main ] com.oxygenxml.editor.EditorPlugin - java.lang.NullPointerException
java.lang.NullPointerException
at com.oxygenxml.editor.EditorPlugin.getEclipseVersion(Unknown Source)
at com.oxygenxml.editor.EditorPlugin.upf(Unknown Source)
at com.oxygenxml.editor.EditorPlugin.kpf(Unknown Source)
at com.oxygenxml.editor.EditorPlugin$14.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
We starting oxygen in our eclipse application, which runs in version 3.6. Could this be the reason for the nullpointer?

Best regards
Denis

Re: Get NullPointer by starting application

Posted: Thu Nov 19, 2015 9:42 pm
by adrian
Hi,

What distribution of Eclipse are you using Help > About Eclipse?
That NPE may appear if you have a custom Eclipse build that doesn't include the 'org.eclipse.platform' package.

Regards,
Adrian

Re: Get NullPointer by starting application

Posted: Fri Nov 20, 2015 6:14 pm
by Denis
Hi,
I have found that the org.eclipse.platform package has to be in feature folder. After this is done the exception will not be thrown anymore.

Best regards,
Denis