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
Depends on:
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

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

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.

java.lang.IndexOutOfBoundsException: index=-1 < 0
   at org.netbeans.lib.lexer.JoinTokenList.tokenList(
   at org.netbeans.lib.lexer.JoinTokenList.fetchActiveTokenListData(
   at org.netbeans.lib.lexer.JoinTokenList.forceActiveTokenListIndex(
   at org.netbeans.lib.lexer.JoinTokenList.setActiveTokenListIndex(
Comment 1 brettryan 2016-07-29 15:46:35 UTC
Created attachment 161493 [details]
Comment 2 Exceptions Reporter 2016-10-12 23:40:29 UTC
Created attachment 162481 [details]

On typing { or [