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 7.1 (Build 201112071828) VM: Java HotSpot(TM) Client VM, 20.5-b03, Java(TM) SE Runtime Environment, 1.6.0_30-b12 OS: Windows XP User Comments: sreder: Trying to add a breakpoint to a custom ant xml script Stacktrace: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.LinkedList.entry(LinkedList.java:365) at java.util.LinkedList.remove(LinkedList.java:357) at org.netbeans.modules.ant.debugger.AntDebugger.targetFinished(AntDebugger.java:399) at org.netbeans.modules.ant.debugger.DebuggerAntLogger.targetFinished(DebuggerAntLogger.java:163) at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.targetFinished(NbBuildLogger.java:475) at org.apache.tools.ant.Project.fireTargetFinished(Project.java:2166)
Created attachment 116679 [details] stacktrace
IndexOutOfBoundsException at AntDebugger.targetFinished(AntDebugger.java:399) is caused by NullPointerException at org.netbeans.modules.ant.debugger.AntDebugger.findTarget(AntDebugger.java:787) at org.netbeans.modules.ant.debugger.AntDebugger.targetStarted(AntDebugger.java:330) Then there's also: IndexOutOfBoundsException at AntDebugger.taskFinished(AntDebugger.java:292) thrown many times. There is no apparent cause, no preceding exceptions.
The one case caused by NPE is fixed already. IndexOutOfBoundsException is fixed by changeset: 220360:fdf655e74e28 http://hg.netbeans.org/main/rev/fdf655e74e28
Integrated into 'main-golden', will be available in build *201205010400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fdf655e74e28 User: mentlicher@netbeans.org Log: #209530: Log the case when the stack is empty when a task or target finishes. And continue.