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.
toString() tries to create an iterator in attribs but attribs may be null hence the NPE. This bug may be seen when logging is set to FINEST or very low values and SyntaxElement-s are being logged (for example in HtmlGSFParser).
Created attachment 77688 [details] Patch to avoid the NPE
This issue was already fixed. Thanks for the patch anyway.
That's odd, I've looked at main-golden before submitting the patch and not on main ( http://hg.netbeans.org/main/file/595d5e077d87/html.editor.lib/src/org/netbeans/editor/ext/html/parser/SyntaxElement.java ) and the bug is still there. What branch are you guys working on ?
Oops, that's really odd. I overlooked that there are two classes called SyntaxElement in the same module. I did fix of the second one yesterday: http://hg.netbeans.org/jet-parsing-api/diff/6c70bf8ec292/html.editor.lib/src/org/netbeans/editor/ext/html/parser/SyntaxElement.java Moreover pushed just to the jet-parsing-api repo, which will likely be merged to main repository this week. I'll fix the second class as well and I'll do that in trunk. I am really sorry for the confusion and thanks for finding the bug a posting the patch.
both classes are fixed in *main* now: http://hg.netbeans.org/main/rev/119b1384ebed http://hg.netbeans.org/main/rev/9c5f6ad917bc