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 267358

Summary: IndexOutOfBoundsException: index=-1 < 0
Product: editor Reporter: brettryan <brettryan>
Component: LexerAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: benp, draison, dxjd4, markiewb, myang0519, vistacali
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 212780
Attachments: stacktrace
stacktrace

Description brettryan 2016-07-29 15:46:33 UTC
Build: NetBeans IDE Dev (Build 201607140002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.92-b14, Java(TM) SE Runtime Environment, 1.8.0_92-b14
OS: Mac OS X

User Comments:
benp: Typing HTML

brettryan: Actually, it was when I typed the =.

GUEST: Adding  the angular {{ }} in a .jade file

GUEST: Was typing out the following knockout JS data bind:

data-bind="html: data.area ? (data.area + 'm<sup>2</sup>') : 'Not specified'"

Threw an exception as soon as I typed the opening <sup> tag. Had to close and reopen the file in order to continue.

brettryan: Typing the "data-bind" attribute for knockoutjs.

This actually occured at the moment I typed the last d.




Stacktrace: 
java.lang.IndexOutOfBoundsException: index=-1 < 0
   at org.netbeans.lib.lexer.JoinTokenList.tokenList(JoinTokenList.java:193)
   at org.netbeans.lib.lexer.JoinTokenList.fetchActiveTokenListData(JoinTokenList.java:247)
   at org.netbeans.lib.lexer.JoinTokenList.forceActiveTokenListIndex(JoinTokenList.java:233)
   at org.netbeans.lib.lexer.JoinTokenList.setActiveTokenListIndex(JoinTokenList.java:227)
   at org.netbeans.lib.lexer.inc.TokenListListUpdate.createJoinTokenListChange(TokenListListUpdate.java:284)
   at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:327)
Comment 1 brettryan 2016-07-29 15:46:35 UTC
Created attachment 161493 [details]
stacktrace
Comment 2 Exceptions Reporter 2016-10-12 23:40:29 UTC
Created attachment 162481 [details]
stacktrace

On typing { or [