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

Summary: NullPointerException at org.netbeans.modules.java.editor.semantic.TokenList$4.run
Product: java Reporter: Jan Pokorsky <jpokorsky>
Component: EditorAssignee: Max Sauer <msauer>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: fzamboj, mburgess
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=143724
Issue Type: DEFECT Exception Reporter: 143724
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

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 ***