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 - IndexOutOfBoundsException: index=1 >= size()=1
Summary: IndexOutOfBoundsException: index=1 >= size()=1
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-13 08:56 UTC by Vladimir Riha
Modified: 2018-01-24 12:35 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216085


Attachments
stacktrace (5.69 KB, text/plain)
2015-03-13 08:56 UTC, Vladimir Riha
Details
sample file (94 bytes, application/octet-stream)
2015-03-13 08:58 UTC, Vladimir Riha
Details
stacktrace (6.47 KB, text/plain)
2016-11-01 11:13 UTC, Exceptions Reporter
Details

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