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 154451 - NullPointerException at org.netbeans.modules.java.editor.semantic.TokenList$4.run
Summary: NullPointerException at org.netbeans.modules.java.editor.semantic.TokenList$4...
Status: RESOLVED DUPLICATE of bug 154404
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-03 13:20 UTC by Jan Pokorsky
Modified: 2009-02-19 21:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 143724


Attachments
stacktrace (5.48 KB, text/plain)
2008-12-03 13:20 UTC, Jan Pokorsky
Details
stacktrace (4.24 KB, text/plain)
2008-12-05 10:36 UTC, Filip Zamboj
Details
stacktrace (4.24 KB, text/plain)
2008-12-05 10:48 UTC, Filip Zamboj
Details
stacktrace (4.24 KB, text/plain)
2008-12-11 14:14 UTC, Filip Zamboj
Details
stacktrace (5.48 KB, text/plain)
2009-01-08 05:56 UTC, mburgess
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2008-12-03 13:20:09 UTC
Build: NetBeans IDE Dev (Build 081203)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments:
jpokorsky: editing the expression field in the Evaluate Expression dialog (debugger)



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.editor.semantic.TokenList$.run(TokenList.java:219)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.java.editor.semantic.TokenList.identifierHere(TokenList.java:204)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:882)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:440)
        at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1689)
Comment 1 Jan Pokorsky 2008-12-03 13:20:21 UTC
Created attachment 74478 [details]
stacktrace
Comment 2 Filip Zamboj 2008-12-05 10:36:16 UTC
Build: NetBeans IDE Dev (Build 081204)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 
1. Invoke New Watch from New Watch context menu
2. write whatever what invokes code completion, e.g. System. 
3. you get an exception

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.editor.semantic.TokenList$4.run(TokenList.java:219)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.java.editor.semantic.TokenList.identifierHere(TokenList.java:204)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:882)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:440)
        at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1689)
Comment 3 Filip Zamboj 2008-12-05 10:36:20 UTC
Created attachment 74583 [details]
stacktrace
Comment 4 Filip Zamboj 2008-12-05 10:48:22 UTC
Build: NetBeans IDE Dev (Build 081204)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 
I just have tried ergonomic build: 
NPE when writing to Evaluate Expresion dialog

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.editor.semantic.TokenList$4.run(TokenList.java:219)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.java.editor.semantic.TokenList.identifierHere(TokenList.java:204)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:882)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:440)
        at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1689)
Comment 5 Filip Zamboj 2008-12-05 10:48:28 UTC
Created attachment 74585 [details]
stacktrace
Comment 6 Filip Zamboj 2008-12-11 14:14:02 UTC
Build: NetBeans IDE Dev (Build 200812110201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 
invoking code completion in Evaluate Expression window

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.editor.semantic.TokenList$4.run(TokenList.java:219)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.java.editor.semantic.TokenList.identifierHere(TokenList.java:204)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:882)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:440)
        at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1689)
Comment 7 Filip Zamboj 2008-12-11 14:14:25 UTC
Created attachment 74854 [details]
stacktrace
Comment 8 mburgess 2009-01-08 05:56:47 UTC
Build: NetBeans IDE Dev (Build 200901061401)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments: 
Adding a new watch in the debugger. I deleted the initial text, then got the exception

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.editor.semantic.TokenList$4.run(TokenList.java:219)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.java.editor.semantic.TokenList.identifierHere(TokenList.java:204)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:882)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitIdentifier(SemanticHighlighter.java:440)
        at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1689)
Comment 9 mburgess 2009-01-08 05:56:51 UTC
Created attachment 75567 [details]
stacktrace
Comment 10 Max Sauer 2009-02-12 13:32:24 UTC
This seems to be a duplicate of #154404.

*** This issue has been marked as a duplicate of 154404 ***