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 262521

Summary: StringIndexOutOfBoundsException: String index out of range: -2
Product: third-party Reporter: javatlacati <javatlacati>
Component: -- Other --Assignee: issues@third-party <issues>
Status: NEW ---    
Severity: normal CC: javatlacati, jiai, yinzara
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 221613
Attachments: stacktrace

Description javatlacati 2016-06-22 05:54:44 UTC
This issue was reported manually by javatlacati.
It already has 3 duplicates 


Build: NetBeans IDE 8.1 (Build 201511021428)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
yinzara: I have no idea

javatlacati: I think the error showed on opening the IDE

jiai: Starting Netbeans.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
   at java.lang.String.substring(String.java:1955)
   at eu.hlavki.netbeans.editor.unicode.Native2AsciiHint.run(Native2AsciiHint.java:55)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
Comment 1 javatlacati 2016-06-22 05:54:46 UTC
Created attachment 160119 [details]
stacktrace
Comment 2 Svata Dedic 2016-06-22 07:30:20 UTC
NPE comes from Native2Ascii plugin; reassigning.
Comment 3 Exceptions Reporter 2017-05-23 17:22:22 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=221613
Comment 4 Exceptions Reporter 2017-05-23 17:25:20 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=221613