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 268717 - StringIndexOutOfBoundsException: String index out of range: -146
Summary: StringIndexOutOfBoundsException: String index out of range: -146
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-27 15:11 UTC by sanhome
Modified: 2018-04-13 06:56 UTC (History)
20 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226211


Attachments
stacktrace (2.60 KB, text/plain)
2016-10-27 15:11 UTC, sanhome
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sanhome 2016-10-27 15:11:56 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: Windows 10

User Comments:
GUEST: asdasdasdasdadasd

GUEST: Don't know

sanhome: Editing jspf file in editor.
Ctrl+Home was pressed.

GUEST: The exception was noticed sometime after it occurred.
Not aware of the specific actions required to reproduce the exception.

GUEST: Editing JSP page

GUEST: Editing a JSP file in a web application. This JSP can't see a servlet in the same module

GUEST: WTF




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -146
   at java.lang.String.substring(String.java:1967)
   at org.netbeans.modules.editor.java.JavaCodeTemplateFilter$1$1.run(JavaCodeTemplateFilter.java:126)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
   at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:204)
Comment 1 sanhome 2016-10-27 15:11:58 UTC
Created attachment 162662 [details]
stacktrace
Comment 2 Exceptions Reporter 2016-11-23 05:44:26 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=226211