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.
[#200702011900, jdk1.5.0] to reproduce: ------------- 1) create a .tag file 2) remove <%@tag description="..." attribute 3) add <%@attribute description="aaaa"%> directive into the .tag file 4) open a .jsp 5) insert into the .jsp: <%@taglib tagdir="/WEB-INF/tags/" prefix="t"%> 6) <% NOTE: auto CC window appears 7) press Enter NOTE: IDE completes the line to: <%@ include %> 8) delete completed text (only '<% ' string remains) 9) copy-paste 'javax.servlet.jsp.jstl.sql.Resul' string on the current cursor position 10) invoke CC ERROR: IDE Throws:
Created attachment 38089 [details] java.lang.NullPointerException: PageInfo obtained from JspParserAPI.ParseResult is null!
Looks like the problem is the same as in the Issue #94582 - the web module is not properly parsed by jsp parser and thus it is throwing the exceptions. Can you reproduce the problem/s on a brand new web project?
Martine, can you react to my last comment please?
Petre, can you please clarify the behaviour of the JSPParserAPI.getPageInfo()? Is that legal that it returns null under some circumstances? Or is that a parser bug? Since you are the expert on the parser I would like to ask you to elaborate how it should behave. Updating javadoc of the API would be superb. I can remove the logged NPE from the JspSyntaxSupport.getImports() easily, but just in case that the null being returned is valid in the testcase.
We need #109620 resolved first!
hopefully fixed + added more logging. changeset: 97503:482eb85c61ce user: Marek Fukala <mfukala@netbeans.org> date: Fri Aug 22 13:00:39 2008 +0200 summary: #94582 - NPE at .JspSyntaxSupport.getTagLibraries():208 changeset: 97504:b7e4821bdf03 tag: tip user: Marek Fukala <mfukala@netbeans.org> date: Fri Aug 22 13:03:47 2008 +0200 summary: #94585 - NPE: PageInfo obtained from JspParserAPI.ParseResult is null! at
Integrated into 'main-golden', available in build *200808221401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/b7e4821bdf03 User: Marek Fukala <mfukala@netbeans.org> Log: #94585 - NPE: PageInfo obtained from JspParserAPI.ParseResult is null! at