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 219396

Summary: NullPointerException at org.netbeans.modules.ant.debugger.Utils.getLine
Product: debugger Reporter: emiddio <emiddio>
Component: AntAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 192957
Attachments: stacktrace

Description emiddio 2012-10-02 17:53:51 UTC
Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.ant.debugger.Utils.getLine(Utils.java:276)
   at org.netbeans.modules.ant.debugger.AntDebugger.updateUI(AntDebugger.java:455)
   at org.netbeans.modules.ant.debugger.AntDebugger.stopHere(AntDebugger.java:263)
   at org.netbeans.modules.ant.debugger.AntDebugger.elementStarted(AntDebugger.java:255)
   at org.netbeans.modules.ant.debugger.AntDebugger.targetStarted(AntDebugger.java:406)
   at org.netbeans.modules.ant.debugger.DebuggerAntLogger.targetStarted(DebuggerAntLogger.java:151)
Comment 1 emiddio 2012-10-02 17:53:55 UTC
Created attachment 125245 [details]
stacktrace
Comment 2 Martin Entlicher 2012-10-03 15:36:03 UTC
Fixed by changeset:   234881:01a3aed61635
http://hg.netbeans.org/main/rev/01a3aed61635

Could you please provide some steps to reproduce? Something is null what should not be, so it would be good to be able to investigate the real cause.
Comment 3 emiddio 2012-10-03 18:42:17 UTC
i am debugging ant script;

build.xml is at:

 <!-- import common build script -->
    <import file="${basedir}/../common/build/common-build.xml"/>
 -->>>   <import file="scripts/soapui.xml"/>

soapui.xml is at:

<project name="soapui" basedir="../..">
    <property file="build/build.properties"/>
    <property name="SOAPUI_HOME" location="${soapui.location}" />
    <property name="soapui-project-xml-location" location="${soapui.project.location}" />
 --->>>   <property name="reports" location="build/tmp/builds/junitreports" />
#######################
above invocation gets the error - but the variables window after the exception
shows reports = C:\DEV\projects\expediaSupplier-dev\build\tmp\builds\junitreports
#######################


    <target name="run.bvt">

        <echo message="soapui location: ${SOAPUI_HOME}"/>