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.
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)
Created attachment 130668 [details] stacktrace
After the exception, I had a modified file, lost my edits partially but could not revert back because undo was broken.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=195584
Created attachment 130925 [details] stacktrace
Created attachment 130962 [details] stacktrace
Should be dup of issue #225451 (already resolved in Dev and release73). *** This bug has been marked as a duplicate of bug 225451 ***