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.
Create a new JSP file. Type <script language="javascript"> and press enter. The following exception is thrown (in fact, it is thrown on every keystroke afterward: java.lang.NullPointerException at org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result.findOrigin(MasterMatcher.java:627) at org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result.run(MasterMatcher.java:507) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1206) at org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result.run(MasterMatcher.java:474) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Making this P2 since the editor is unusable if there are any script tags in html or javascript.
Umm, it looks like BracesMatcherFactory from html or maybe javascript failed to provide a BracesMatcher. But the infrastructure should not crash. I'll fix it. Thanks
Hopefully fixed now. I'm not sure how the braces matching is working in javascript or html these days. If it's not working please file issues to these modules. They will need to fix their BracesMatcher implementations. changeset 24f614d3bf3a in main details: http://hg.netbeans.org/main?cmd=changeset;node=24f614d3bf3a