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 225363

Summary: [73cat] IndexOutOfBoundsException: View index=1 >= 1
Product: editor Reporter: misterm <misterm>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED DUPLICATE    
Severity: normal CC: akobberup, bht, gena01, medeag, mps77, msk, phr3n1c
Priority: P2    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 195584
Attachments: stacktrace
stacktrace
stacktrace

Description misterm 2013-01-25 17:41:26 UTC
Build: NetBeans IDE Dev (Build 20130125-7919c44adcc6)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
msk: I got this error when pressed
"ctrl + x" on selected condition ( if (condition) {} )




Stacktrace: 
java.lang.IndexOutOfBoundsException: View index=1 >= 1
   at org.netbeans.modules.editor.lib2.view.ParagraphView.getEditorView(ParagraphView.java:228)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:871)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:735)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:689)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.updateViewsByModification(ViewUpdates.java:311)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.insertUpdate(ViewUpdates.java:247)
Comment 1 misterm 2013-01-25 17:41:29 UTC
Created attachment 130668 [details]
stacktrace
Comment 2 bht 2013-01-31 09:27:49 UTC
After the exception, I had a modified file, lost my edits partially but could not revert back because undo was broken.
Comment 3 Exceptions Reporter 2013-01-31 12:19:53 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=195584
Comment 4 akobberup 2013-02-01 12:07:52 UTC
Created attachment 130925 [details]
stacktrace
Comment 5 medeag 2013-02-03 12:40:58 UTC
Created attachment 130962 [details]
stacktrace
Comment 6 Miloslav Metelka 2013-02-06 14:37:31 UTC
Should be dup of issue #225451 (already resolved in Dev and release73).

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