This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
At some point when using Ant code completion (ant/grammar) I got a UOException thrown from SE.getNext, for no reason I can see (do not know how to reproduce). Regardless of why this condition was encountered, UOException is not the right exception - that means that an attempt was made to use methods from an unsupported DOM version etc. That is not the case here - the methods normally work fine. Attaching a patch which at least behaves more gracefully: prints a diagnostic message and then returns null, the documented fallback value.
Created attachment 12863 [details] Suggested patch to make the bug less onerous (does not fix the bug)
Created attachment 12864 [details] Stack trace from exception I encountered once in dev-040109
Not critical for Promo B.
At least consider the attached patch for B. Very simple and makes the symptoms of the bug less evil.
Applied, thanks Jesse. SyntaxElement.java new revision: 1.9
*** Issue 37872 has been marked as a duplicate of this issue. ***