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 269779 - ArrayIndexOutOfBoundsException: -1
Summary: ArrayIndexOutOfBoundsException: -1
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-08 21:24 UTC by Exceptions Reporter
Modified: 2017-02-08 21:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207290


Attachments
stacktrace (4.42 KB, text/plain)
2017-02-08 21:24 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2017-02-08 21:24:43 UTC
Build: NetBeans IDE Dev (Build 201702060002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.91-b14, Java(TM) SE Runtime Environment, 1.8.0_91-b14
OS: Windows 10

User Comments:
GUEST: My java code editor doesn't properly show code highlighting.

gtzabari: Renamed field. Exception thrown.

gtzabari: Not sure.

jrose: Browsing code.

GUEST: Picked a character and tried to use Ctrl+[right arrow] to select to the end of the word.

GUEST: Just scrollingm reading some code and this popped up




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.ArrayList.elementData(ArrayList.java:418)
   at java.util.ArrayList.get(ArrayList.java:431)
   at org.netbeans.modules.editor.java.CamelCaseOperations.nextCamelCasePositionImpl(CamelCaseOperations.java:95)
   at org.netbeans.modules.editor.java.CamelCaseOperations$1.run(CamelCaseOperations.java:80)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1427)
   at org.netbeans.modules.editor.java.CamelCaseOperations.nextCamelCasePosition(CamelCaseOperations.java:76)
Comment 1 Exceptions Reporter 2017-02-08 21:24:46 UTC
Created attachment 163597 [details]
stacktrace