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 - NullPointerException at org.netbeans.modules.ant.debugger.Utils.getLine
Summary: NullPointerException at org.netbeans.modules.ant.debugger.Utils.getLine
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-02 17:53 UTC by emiddio
Modified: 2012-10-03 18:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 192957


Attachments
stacktrace (1.29 KB, text/plain)
2012-10-02 17:53 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
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}"/>