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 195617 - [70cat] NullPointerException at org.netbeans.editor.ext.html.parser.api.AstNode.getNameWithoutPrefix
Summary: [70cat] NullPointerException at org.netbeans.editor.ext.html.parser.api.AstNo...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 15:51 UTC by nicu2005
Modified: 2011-02-25 05:33 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 176749


Attachments
stacktrace (1.97 KB, text/plain)
2011-02-17 15:51 UTC, nicu2005
Details
stacktrace (1.97 KB, text/plain)
2011-02-17 19:27 UTC, nicu2005
Details
stacktrace (1.97 KB, text/plain)
2011-02-18 14:40 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nicu2005 2011-02-17 15:51:41 UTC
This bug was originally marked as duplicate of bug 194537, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201102160501)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
GUEST: edit xhtml

nicu2005: type "</" in xhtml editor




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.editor.ext.html.parser.api.AstNode.getNameWithoutPrefix(AstNode.java:372)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.query(HtmlCompletionQuery.java:418)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery$1.run(HtmlCompletionQuery.java:133)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1422)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.run(HtmlCompletionQuery.java:125)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:154)
Comment 1 nicu2005 2011-02-17 15:51:50 UTC
Created attachment 106121 [details]
stacktrace
Comment 2 nicu2005 2011-02-17 19:27:44 UTC
Created attachment 106124 [details]
stacktrace
Comment 3 Exceptions Reporter 2011-02-18 14:40:13 UTC
Created attachment 106158 [details]
stacktrace

editing xhtml...
Comment 4 Exceptions Reporter 2011-02-22 20:52:57 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=176749
Comment 5 Marek Fukala 2011-02-24 14:20:15 UTC
fixed in web-main#3e1b7993438b

I used to happen on boundaries of errors or comments.
Comment 6 Quality Engineering 2011-02-25 05:33:59 UTC
Integrated into 'main-golden', will be available in build *201102250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3e1b7993438b
User: Marek Fukala <mfukala@netbeans.org>
Log: #195617 -[70cat] NullPointerException at org.netbeans.editor.ext.html.parser.api.AstNode.getNameWithoutPrefi