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 201202140400) VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05 OS: Windows 7 User Comments: javydreamercsw: Using next on an antcall call (the called target is on an imported xml file) Stacktrace: java.lang.NullPointerException at org.netbeans.modules.ant.debugger.Utils.getLine(Utils.java:272) at org.netbeans.modules.ant.debugger.AntDebugger.onBreakpoint(AntDebugger.java:545) at org.netbeans.modules.ant.debugger.AntDebugger.elementStarted(AntDebugger.java:244) at org.netbeans.modules.ant.debugger.AntDebugger.targetStarted(AntDebugger.java:394) at org.netbeans.modules.ant.debugger.DebuggerAntLogger.targetStarted(DebuggerAntLogger.java:150) at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.targetStarted(NbBuildLogger.java:436)
Created attachment 115993 [details] stacktrace
The target is likely null, because ((TargetOriginating) frame).getOriginatingTarget() can return null.
Fixed NPE and added some logging in changeset: 220361:1f7bb7a51971 http://hg.netbeans.org/main/rev/1f7bb7a51971
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/1f7bb7a51971 User: mentlicher@netbeans.org Log: #208712: Prevent from NPE and report the case when we're not able to find the event's target so that we can explore it later...