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.
Create class, add several new line to it, and try to add breakpoint to added lines. It cannot be added and exception is thrown, or it is added to incorrect line. This is because there is a call to getOriginal somewhere in the context. java.lang.IndexOutOfBoundsException: Invalid line index=86 >= lineCount=70 org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:54) org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:642) org.netbeans.editor.BaseDocument.render(BaseDocument.java:883) org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:620) org.openide.text.NbDocument.findLineOffset(NbDocument.java:143) org.openide.text.DocumentLine$Set.getOriginal(DocumentLine.java:881) org.netbeans.modules.debugger.projects.ContextProviderImpl.getCurrentLineNumber(ContextProviderImpl.java:127) org.netbeans.modules.debugger.jpda.ui.Context.getCurrentLineNumber(Context.java:106) org.netbeans.modules.debugger.jpda.ui.actions.ToggleBreakpointAction.performAction(ToggleBreakpointAction.java:87)
*** Issue 42636 has been marked as a duplicate of this issue. ***
*** This issue has been marked as a duplicate of 42270 ***
verified duplicate