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

Summary: ArrayIndexOutOfBoundsException: -1
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: gtzabari, jrose
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207290
Attachments: stacktrace

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