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 187983 - NullPointerException at org.netbeans.modules.ant.debugger.Utils.getLineNumber
Summary: NullPointerException at org.netbeans.modules.ant.debugger.Utils.getLineNumber
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 08:42 UTC by bokc
Modified: 2010-08-07 03:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 170907


Attachments
stacktrace (1.21 KB, text/plain)
2010-06-23 08:42 UTC, bokc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bokc 2010-06-23 08:42:38 UTC
Build: NetBeans IDE Dev (Build 201006230001)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP

User Comments:
bokc: Stop job




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.ant.debugger.Utils.getLineNumber(Utils.java:170)
   at org.netbeans.modules.ant.debugger.AntDebugger.updateOutputWindow(AntDebugger.java:454)
   at org.netbeans.modules.ant.debugger.AntDebugger.updateUI(AntDebugger.java:445)
   at org.netbeans.modules.ant.debugger.AntDebugger.stopHere(AntDebugger.java:258)
   at org.netbeans.modules.ant.debugger.AntDebugger.elementStarted(AntDebugger.java:250)
   at org.netbeans.modules.ant.debugger.AntDebugger.taskStarted(AntDebugger.java:236)
Comment 1 bokc 2010-06-23 08:42:41 UTC
Created attachment 100348 [details]
stacktrace
Comment 2 Martin Entlicher 2010-06-23 13:43:35 UTC
The code does not count with null value of currentLine.
Comment 3 Martin Entlicher 2010-08-06 07:57:35 UTC
Fixed in changeset:   175321:fa56500220c2
http://hg.netbeans.org/main/rev/fa56500220c2
Comment 4 Quality Engineering 2010-08-07 03:34:31 UTC
Integrated into 'main-golden', will be available in build *201008070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fa56500220c2
User: mentlicher@netbeans.org
Log: #187983 Prevent from NPE.