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 230005

Summary: ArrayIndexOutOfBoundsException: 30
Product: editor Reporter: Egor Ushakov <gorrus>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 200769
Attachments: stacktrace

Description Egor Ushakov 2013-05-20 16:35:19 UTC
Build: NetBeans IDE Dev (Build 20130520-e0931750b44a)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: SunOS

User Comments:
gorrus: opened macro view in cnd




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 30
   at org.netbeans.modules.editor.lib2.document.CharContent.charAt(CharContent.java:80)
   at org.netbeans.modules.editor.lib2.highlighting.WhitespaceHighlighting$HS.moveNext(WhitespaceHighlighting.java:303)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.fetchNextHighlight(DirectMergeContainer.java:442)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.<init>(DirectMergeContainer.java:407)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.<init>(DirectMergeContainer.java:197)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer.getHighlights(DirectMergeContainer.java:103)
Comment 1 Egor Ushakov 2013-05-20 16:35:21 UTC
Created attachment 134652 [details]
stacktrace
Comment 2 Miloslav Metelka 2013-05-21 08:58:29 UTC
I was not able to reproduce the problem but the code should be improved to eliminate this problem.
http://hg.netbeans.org/jet-main/rev/ad4e12fd7029
Comment 3 Quality Engineering 2013-05-22 02:36:34 UTC
Integrated into 'main-golden', will be available in build *201305212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ad4e12fd7029
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #230005 - ArrayIndexOutOfBoundsException: 30.