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 228867 - NullPointerException at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult$ElementContentFilter.shouldBeFiltered
Summary: NullPointerException at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyz...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 228996 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-22 21:31 UTC by athompson
Modified: 2013-05-09 14:02 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200129


Attachments
stacktrace (5.33 KB, text/plain)
2013-04-22 21:31 UTC, athompson
Details
stacktrace (3.73 KB, text/plain)
2013-04-24 17:16 UTC, Maksim Khramov
Details
stacktrace (3.63 KB, text/plain)
2013-04-26 10:58 UTC, Vladimir Riha
Details
stacktrace (5.33 KB, text/plain)
2013-04-29 07:43 UTC, Exceptions Reporter
Details
stacktrace (5.33 KB, text/plain)
2013-04-29 11:28 UTC, Martin Kanak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2013-04-22 21:31:28 UTC
Build: NetBeans IDE Dev (Build 201304212301)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b12
OS: Mac OS X

User Comments:
GUEST: Endless project scanning for my Webproject

athompson: switched java editor tabs




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult$ElementContentFilter.shouldBeFiltered(SyntaxAnalyzerResult.java:728)
   at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult$ElementContentFilter.getMasks(SyntaxAnalyzerResult.java:686)
   at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult.findMaskedAreas(SyntaxAnalyzerResult.java:481)
   at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult.getMaskedAreas(SyntaxAnalyzerResult.java:456)
   at org.netbeans.modules.html.editor.api.gsf.HtmlParserResult.getErrorsFromValidatorService(HtmlParserResult.java:275)
   at org.netbeans.modules.html.editor.api.gsf.HtmlParserResult.getValidationResults(HtmlParserResult.java:262)
Comment 1 athompson 2013-04-22 21:31:30 UTC
Created attachment 133681 [details]
stacktrace
Comment 2 Maksim Khramov 2013-04-24 17:16:16 UTC
Created attachment 133766 [details]
stacktrace

Exceptions occurs on opening JSF project xhtml file
Comment 3 Vladimir Riha 2013-04-26 10:58:19 UTC
Created attachment 133843 [details]
stacktrace

In HTML file, I selected all content using Ctrl+A and pasted _source code_ of [1] from clipboard

[1] http://bugzilla-attachments-228528.netbeans.org/bugzilla/attachment.cgi?id=133479
Comment 4 Exceptions Reporter 2013-04-26 10:58:22 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200129
Comment 5 Vladimir Riha 2013-04-26 11:02:07 UTC
To reproduce:
- open HTML file http://bugzilla-attachments-228528.netbeans.org/bugzilla/attachment.cgi?id=133479 in IDE and click anywhere

=> one click, one exception

The problem is missing doctype, once I added <!doctype html>, it was OK. This should be fixed for 7.4 as it could make editor unusable.
Comment 6 Exceptions Reporter 2013-04-29 07:43:26 UTC
Created attachment 133911 [details]
stacktrace

fjava.lang.NullPointerException
	at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult$ElementContentFilter.shouldBeFiltered(SyntaxAnalyzerResult.java:728)
	at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult$ElementContentFilter.getMasks(SyntaxAnalyzerResult.java:686)
	at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult.findMaskedAreas(SyntaxAnalyzerResult.java:481)
	at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult.getMaskedAreas(SyntaxAnalyzerResult.java:456)
	at org.netbeans.modules.html.editor.api.gsf.HtmlParserResult.getErrorsFromValidatorService(HtmlParserResult.java:275)
	at org.netbeans.modules.html.editor.api.gsf.HtmlParserResult.getValidationResults(HtmlParserResult.java:262)
	at org.netbeans.modules.html.editor.api.gsf.HtmlParserResult.getDiagnostics(HtmlParserResult.java:251)
	at org.netbeans.modules.html.editor.hints.HtmlRuleContext.<init>(HtmlRuleContext.java:84)
	at org.netbeans.modules.html.editor.hints.HtmlHintsProvi
Comment 7 Martin Kanak 2013-04-29 11:28:26 UTC
Created attachment 133925 [details]
stacktrace

open phpproject (mediawiki)
Comment 8 Marek Fukala 2013-04-30 14:11:28 UTC
fixed in web-main#02e4dc0a5524
Comment 9 Marek Fukala 2013-05-02 10:50:29 UTC
*** Bug 228996 has been marked as a duplicate of this bug. ***
Comment 10 Quality Engineering 2013-05-02 14:10:25 UTC
Integrated into 'main-golden', will be available in build *201305021042* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/02e4dc0a5524
User: Marek Fukala <mfukala@netbeans.org>
Log: #228867 - NullPointerException at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult$ElementContentFilter.shouldBeFiltered
Comment 11 athompson 2013-05-09 14:02:48 UTC
yup (i think)