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.

Bug 128372

Summary: Exceptions with nested javascript
Product: editor Reporter: _ tboudreau <tboudreau>
Component: Hints & AnnotationsAssignee: Vitezslav Stejskal <vstejskal>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ tboudreau 2008-02-25 23:59:21 UTC
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)
Comment 1 _ tboudreau 2008-02-26 00:27:12 UTC
Making this P2 since the editor is unusable if there are any script tags in html or javascript.
Comment 2 Vitezslav Stejskal 2008-02-26 13:41:15 UTC
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
Comment 3 Vitezslav Stejskal 2008-02-26 13:54:33 UTC
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