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 - IndexOutOfBoundsException: index=-1 < 0
Summary: IndexOutOfBoundsException: index=-1 < 0
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-29 15:46 UTC by brettryan
Modified: 2017-08-13 13:47 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212780


Attachments
stacktrace (5.03 KB, text/plain)
2016-07-29 15:46 UTC, brettryan
Details
stacktrace (5.14 KB, text/plain)
2016-10-12 23:40 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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 [