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 - Exceptions with nested javascript
Summary: Exceptions with nested javascript
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-25 23:59 UTC by _ tboudreau
Modified: 2008-02-26 13:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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