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.
Build: NetBeans IDE Dev (Build 110301-1050701f6c3d) VM: Java HotSpot(TM) Client VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261 OS: Mac OS X Stacktrace: java.lang.NullPointerException at org.netbeans.modules.html.editor.HtmlPreferences.getMimetypesWithEnabledHtmlErrorCheckingAsCollection(HtmlPreferences.java:240) at org.netbeans.modules.html.editor.HtmlPreferences.getMimetypesWithEnabledHtmlErrorChecking(HtmlPreferences.java:184) at org.netbeans.modules.html.editor.HtmlPreferences.isHtmlErrorCheckingEnabledForMimetype(HtmlPreferences.java:188) at org.netbeans.modules.html.editor.HtmlErrorFilter.isErrorCheckingEnabledForMimetype(HtmlErrorFilter.java:91) at org.netbeans.modules.html.editor.HtmlErrorFilter.isErrorCheckingEnabled(HtmlErrorFilter.java:82) at org.netbeans.modules.html.editor.HtmlErrorFilter.filter(HtmlErrorFilter.java:75)
Created attachment 106872 [details] stacktrace
This issue IMO always happen if one opens the ide with no html-containing opened files (html, jsp, php...) in the editor and does nothing else than opens such file. To me it happened when I started the ide with a fresh userdir, opened an existing web project and opened a jsp file. I would like to ask QE whether they want this to be fixed in 7.0
fixed in web-main#b0aaac5df6bd My justification for this to be fixed in 7.0 is that the fix is absolutely safe and it makes a bad impression to start NB open a file and got an exception in the very first place.
(In reply to comment #2) > I would like to ask QE whether they want this to be fixed in 7.0 I agree - should be fixed in NB 7.0. Lada, could you please test the fix and verify it in the next development build ? Thanks in advance.
I will test it on Friday 03/11 (if the next dev build will be released tomorrow)
Integrated into 'main-golden', will be available in build *201103110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b0aaac5df6bd User: Marek Fukala <mfukala@netbeans.org> Log: #196537 - NullPointerException at org.netbeans.modules.html.editor.HtmlPreferences.getMimetypesWithEnabledHtmlErrorCheckingAsCollection
I wasn't able to reproduce, verified...
fixed in releases repository - release70 branch #46df3bebc547