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 251145

Summary: IndexOutOfBoundsException: index=1 >= size()=1
Product: editor Reporter: Vladimir Riha <vriha>
Component: LexerAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: banstola, legitalk, nakagaki, Vincenzo_HPO, writerim
Priority: P2    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 216085
Attachments: stacktrace
sample file
stacktrace

Description Vladimir Riha 2015-03-13 08:56:44 UTC
Build: NetBeans IDE Dev (Build 201503130001)
VM: Java HotSpot(TM) Client VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25
OS: Linux

User Comments:
vriha: removing characters with Backspace in jade template




Stacktrace: 
java.lang.IndexOutOfBoundsException: index=1 >= size()=1
   at org.netbeans.lib.lexer.JoinTokenList.tokenList(JoinTokenList.java:195)
   at org.netbeans.lib.lexer.inc.TokenListListUpdate.afterUpdateTokenList(TokenListListUpdate.java:129)
   at org.netbeans.lib.lexer.inc.MutableJoinLexerInputOperation.tokenList(MutableJoinLexerInputOperation.java:83)
   at org.netbeans.lib.lexer.JoinLexerInputOperation.fetchActiveTokenList(JoinLexerInputOperation.java:208)
   at org.netbeans.lib.lexer.JoinLexerInputOperation.createJoinToken(JoinLexerInputOperation.java:272)
   at org.netbeans.lib.lexer.JoinLexerInputOperation.createPropertyTokenInstance(JoinLexerInputOperation.java:247)
Comment 1 Vladimir Riha 2015-03-13 08:56:48 UTC
Created attachment 152595 [details]
stacktrace
Comment 2 Vladimir Riha 2015-03-13 08:58:55 UTC
Created attachment 152596 [details]
sample file

To reproduce, please put cursor at the end of line 2 and press Backspace
Comment 3 Exceptions Reporter 2016-09-19 08:51:54 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216085
Comment 4 legitalk 2016-09-19 08:55:18 UTC
In js file I have this:

<a href=""></a>

Then I try to write {} inside "", and the error occurs and its not possible to write that there.

PS: the href is in js file because later I changed it to var h = '<a href="{$href}"></a>';
Comment 5 Exceptions Reporter 2016-11-01 11:13:27 UTC
Created attachment 162710 [details]
stacktrace

?
Comment 6 Exceptions Reporter 2017-04-03 12:55:11 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216085