NPE in Oxygen Eclipse Plugin when disposing display.
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 16
- Joined: Wed Jan 12, 2022 6:17 pm
NPE in Oxygen Eclipse Plugin when disposing display.
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
-
- Posts: 143
- Joined: Tue Mar 25, 2003 11:21 am
Re: NPE in Oxygen Eclipse Plugin when disposing display.
Hello Steve,
Can you please specify also the Eclipse distribution and build number ?
The problem you encountered is also available in the 24.1 version ?
We strongly encourage you to use the 24.1 version since it usually contains not only improvements but also bug-fixes...
I will try to reproduce the problem on our side as well.
Regards,
Mircea
Can you please specify also the Eclipse distribution and build number ?
The problem you encountered is also available in the 24.1 version ?
We strongly encourage you to use the 24.1 version since it usually contains not only improvements but also bug-fixes...
I will try to reproduce the problem on our side as well.
Regards,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 143
- Joined: Tue Mar 25, 2003 11:21 am
Re: NPE in Oxygen Eclipse Plugin when disposing display.
Hi Steve,
Have you tried the 24.1 version as suggested ?
Regards,
Mircea
Have you tried the 24.1 version as suggested ?
Regards,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service