RSyntaxTextArea | Bug in LanguageSupport

General Discussion on RSyntaxTextArea.

Moderator: robert

RSyntaxTextArea | Bug in LanguageSupport

Postby Blogghete » Fri Dec 13, 2013 3:29 pm

Hi all,
the following description refers to the latest stable version of the LanguageSupport module.

How to reproduce the error:

1) Run DemoApp.java (RSTA Language Support Demo Application)
2) Select Language > XML
3) Select a language that doesn't refresh the tree, i.e.: Language > Groovy (the tree is not updated)
4) Select a node of the tree (an error occurs)

Bug: The tree isn't null.
Obtained stacktrace:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.fife.rsta.ac.xml.tree.XmlOutlineTree.gotoElementAtPath(XmlOutlineTree.java:140)
at org.fife.rsta.ac.xml.tree.XmlOutlineTree.access$2(XmlOutlineTree.java:136)
at org.fife.rsta.ac.xml.tree.XmlOutlineTree$XmlEditorListener.valueChanged(XmlOutlineTree.java:263)
at javax.swing.JTree.fireValueChanged(Unknown Source)
at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)
at javax.swing.JTree.setSelectionPath(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Thanks a lot in advance for Your precious support and for fixing this issue in the next release.
Blogghete.
Blogghete
 
Posts: 9
Joined: Wed May 29, 2013 3:25 pm

Re: RSyntaxTextArea | Bug in LanguageSupport

Postby robert » Sun Dec 29, 2013 4:00 pm

Thanks Blogghete! This is fixed in Git and will be in the next release.
User avatar
robert
 
Posts: 774
Joined: Sat May 10, 2008 5:16 pm


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron