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 219656 - IndexOutOfBoundsException: Invalid line index=228 >= lineCount=228
Summary: IndexOutOfBoundsException: Invalid line index=228 >= lineCount=228
Status: RESOLVED DUPLICATE of bug 218601
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-07 13:53 UTC by Exceptions Reporter
Modified: 2013-01-08 15:50 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192585


Attachments
stacktrace (3.67 KB, text/plain)
2012-10-07 13:53 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-10-07 13:53:45 UTC
Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

User Comments:
linkmatrix: [editor]

during saving

linkmatrix: [editor]
During PHP source code editor hitting the key combination CTRL + SHIFT + F to automatic formatting marked source code.

linkmatrix: Editing PHP code in editor. 
Deleting on line.
Popup with message.

linkmatrix: like before, just editing a line.

linkmatrix: [editor]
during editing

linkmatrix: Clicking saving in editor.

linkmatrix: happened during editing




Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=228 >= lineCount=228
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:84)
   at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.updateLineEndOffset(HighlightsViewFactory.java:301)
   at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.createView(HighlightsViewFactory.java:202)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:893)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:730)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:684)
Comment 1 Exceptions Reporter 2012-10-07 13:53:47 UTC
Created attachment 125529 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-10-15 10:02:16 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192585
Comment 3 Milutin Kristofic 2013-01-08 15:50:07 UTC

*** This bug has been marked as a duplicate of bug 218601 ***