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

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

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

java.lang.IndexOutOfBoundsException: index=1 >= size()=1
   at org.netbeans.lib.lexer.JoinTokenList.tokenList(
   at org.netbeans.lib.lexer.JoinLexerInputOperation.fetchActiveTokenList(
   at org.netbeans.lib.lexer.JoinLexerInputOperation.createJoinToken(
   at org.netbeans.lib.lexer.JoinLexerInputOperation.createPropertyTokenInstance(
Comment 1 Vladimir Riha 2015-03-13 08:56:48 UTC
Created attachment 152595 [details]
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 
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]

Comment 6 Exceptions Reporter 2017-04-03 12:55:11 UTC
This bug already has 20 duplicates