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 201725 - NullPointerException at org.netbeans.lib.lexer.LexerInputOperation.nextToken
Summary: NullPointerException at org.netbeans.lib.lexer.LexerInputOperation.nextToken
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 07:19 UTC by runshine
Modified: 2011-10-19 14:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178925


Attachments
stacktrace (6.16 KB, text/plain)
2011-09-07 07:19 UTC, runshine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description runshine 2011-09-07 07:19:04 UTC
Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) Client VM, 20.2-b06, Java(TM) SE Runtime Environment, 1.6.0_27-b07
OS: Windows XP

User Comments:
GUEST: opening NetBeans




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:209)
   at org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbeddingImpl(IncTokenList.java:188)
   at org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbedding(IncTokenList.java:183)
   at org.netbeans.api.lexer.TokenSequence.moveNext(TokenSequence.java:457)
   at org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveTheSequence(SyntaxHighlighting.java:592)
   at org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveNext(SyntaxHighlighting.java:299)
Comment 1 runshine 2011-09-07 07:19:09 UTC
Created attachment 110463 [details]
stacktrace
Comment 2 Miloslav Metelka 2011-10-18 08:26:13 UTC
atomicUnlock() now fires undoable edit and atomic listener before extWriteUnlock().
http://hg.netbeans.org/jet-main/rev/681895d7a357
Comment 3 Miloslav Metelka 2011-10-18 15:06:07 UTC
Reverted 681895d7a357 since it caused starvation for document lock. I need to find proper fix.

http://hg.netbeans.org/jet-main/rev/e82c56cf1f73
Comment 4 Miloslav Metelka 2011-10-18 15:16:51 UTC
Appropriate fix:
http://hg.netbeans.org/jet-main/rev/4e6d44e0b52e
Comment 5 Quality Engineering 2011-10-19 14:17:22 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/681895d7a357
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #201725 - NullPointerException at org.netbeans.lib.lexer.LexerInputOperation.nextToken().