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 162797 - NPE if <form> tag entered outside of <body>
Summary: NPE if <form> tag entered outside of <body>
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 162816 162877 162894 162999 163000 163038 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-16 10:02 UTC by Michael Nazarov
Modified: 2009-05-18 10:47 UTC (History)
3 users (show)

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 Michael Nazarov 2009-04-16 10:02:48 UTC
Product Version: NetBeans IDE Dev (Build 200904160201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Create new HTML file (I also checked with PHP files) and enter <form>
tag after </head> before <body> tags. IDE will start to throw NPEs.
If you close NPE window new will come shortly.

java.lang.NullPointerException
	at org.netbeans.editor.ext.html.parser.AstNode.isResolved(AstNode.java:132)
	at org.netbeans.editor.ext.html.parser.SyntaxTree.makeTree(SyntaxTree.java:123)
	at org.netbeans.modules.html.editor.gsf.HtmlParserResult.root(HtmlParserResult.java:92)
	at org.netbeans.modules.html.editor.gsf.HtmlParserResult.<init>(HtmlParserResult.java:81)
	at org.netbeans.modules.html.editor.gsf.HtmlGSFParser.parse(HtmlGSFParser.java:113)
	at org.netbeans.modules.html.editor.gsf.HtmlGSFParser.parse(HtmlGSFParser.java:74)
	at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:198)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:668)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 Jindrich Sedek 2009-04-16 11:48:13 UTC
not reproducible in 200904151401 - seems to be a regression of yesterday
Comment 2 Marek Fukala 2009-04-16 18:52:47 UTC
*** Issue 162816 has been marked as a duplicate of this issue. ***
Comment 3 Marek Fukala 2009-04-16 19:02:32 UTC
fixed in web-main#168562a3b409
Comment 4 Marek Fukala 2009-04-16 21:07:35 UTC
*** Issue 162877 has been marked as a duplicate of this issue. ***
Comment 5 brettryan 2009-04-16 21:26:58 UTC
Brilliant, what build should I see this one in? 20090417?
Comment 6 Marek Fukala 2009-04-16 22:45:49 UTC
Looks like http://bertram.netbeans.org/hudson/job/web-main/405/ contains the fix.
Comment 7 Marek Fukala 2009-04-16 23:13:00 UTC
I guess 20090417 won't contain the fix, but I'm not sure.
Comment 8 Marek Fukala 2009-04-17 07:30:23 UTC
*** Issue 162894 has been marked as a duplicate of this issue. ***
Comment 9 eruvel 2009-04-17 17:03:25 UTC
Confirmed. 20090417 does not contain the fix
Comment 10 Quality Engineering 2009-04-17 19:55:34 UTC
Integrated into 'main-golden', will be available in build *200904171401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/168562a3b409
User: Marek Fukala <mfukala@netbeans.org>
Log: #162797 - NPE if <form> tag entered outside of <body>
Comment 11 Marek Fukala 2009-04-20 08:56:53 UTC
*** Issue 162999 has been marked as a duplicate of this issue. ***
Comment 12 Marek Fukala 2009-04-20 08:57:17 UTC
*** Issue 163000 has been marked as a duplicate of this issue. ***
Comment 13 Marek Fukala 2009-04-20 08:57:53 UTC
*** Issue 163038 has been marked as a duplicate of this issue. ***
Comment 14 brettryan 2009-04-20 23:44:07 UTC
Confirmed fixed in 200904201507.