NPE in Oxygen Eclipse Plugin when disposing display.
Posted: Wed Jul 13, 2022 4:16 pm
Hi,
we are integrating the OxygenXMLAuthor Eclipse Plugin v24.0 in an Eclipse RCP Application.
When the Eclipse RCP Application gets closed, the org.eclipse.swt.Display will disposed.
This leads to a Nullpointer-Exception in the OxygenXMLAuthor that pops up when closing the Application:
Here is an excerpt of the Stacktrace:
java.lang.NullPointerException
at com.oxygenxml.editor.EditorPlugin$31.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4029)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3629)
at org.eclipse.swt.widgets.Display.release(Display.java:3704)
at org.eclipse.swt.graphics.Device.dispose(Device.java:324)
.....
Do you have any advice how to avoid the occurance of this NPE ? May there be a possible Bug / missing nullcheck?
Kind Regards
we are integrating the OxygenXMLAuthor Eclipse Plugin v24.0 in an Eclipse RCP Application.
When the Eclipse RCP Application gets closed, the org.eclipse.swt.Display will disposed.
This leads to a Nullpointer-Exception in the OxygenXMLAuthor that pops up when closing the Application:
Here is an excerpt of the Stacktrace:
java.lang.NullPointerException
at com.oxygenxml.editor.EditorPlugin$31.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4029)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3629)
at org.eclipse.swt.widgets.Display.release(Display.java:3704)
at org.eclipse.swt.graphics.Device.dispose(Device.java:324)
.....
Do you have any advice how to avoid the occurance of this NPE ? May there be a possible Bug / missing nullcheck?
Kind Regards