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 154404

Summary: NullPointerException at org.netbeans.modules.java.editor.semantic.TokenList$3.run
Product: java Reporter: Martin Entlicher <mentlicher>
Component: EditorAssignee: Max Sauer <msauer>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: fzamboj
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=143523
Issue Type: DEFECT Exception Reporter: 143523
Bug Depends on: 154992    
Bug Blocks:    
Attachments: stacktrace
stacktrace

Description Martin Entlicher 2008-12-02 22:43:18 UTC
Build: NetBeans IDE Dev (Build 081202)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Linux, 2.6.22-14-generic, i386

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.editor.semantic.TokenList$.run(TokenList.java:189)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.java.editor.semantic.TokenList.firstIdentifier(TokenList.java:174)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.firstIdentifier(SemanticHighlighter.java:476)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitClass(SemanticHighlighter.java:1292)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitClass(SemanticHighlighter.java:440)
Comment 1 Martin Entlicher 2008-12-02 22:43:26 UTC
Created attachment 74447 [details]
stacktrace
Comment 2 Filip Zamboj 2008-12-17 13:28:51 UTC
Build: NetBeans IDE Dev (Build 200812170242)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.27-9-generic, amd64

User Comments: 
NPE when invoking code completion in Expression Evaluator dialog during debugging session

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.editor.semantic.TokenList$3.run(TokenList.java:189)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.java.editor.semantic.TokenList.firstIdentifier(TokenList.java:174)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.firstIdentifier(SemanticHighlighter.java:476)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitClass(SemanticHighlighter.java:1292)
        at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.visitClass(SemanticHighlighter.java:440)
Comment 3 Filip Zamboj 2008-12-17 13:29:12 UTC
Created attachment 75085 [details]
stacktrace
Comment 4 Max Sauer 2009-02-12 13:32:23 UTC
*** Issue 154451 has been marked as a duplicate of this issue. ***
Comment 5 Max Sauer 2009-02-12 13:54:26 UTC
Cannot be reproduced and fixed until #154992 will be fixed.
Comment 6 Max Sauer 2009-10-26 15:22:23 UTC
Seems to be fixed in 
Product Version: NetBeans IDE Dev (Build 091026)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137
System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb)