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 258380 - NullPointerException at org.openide.text.Line$Set.computeOriginal
Summary: NullPointerException at org.openide.text.Line$Set.computeOriginal
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-15 13:02 UTC by Jaroslav Havlin
Modified: 2016-07-12 01:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 223027


Attachments
stacktrace (2.19 KB, text/plain)
2016-03-15 13:02 UTC, Jaroslav Havlin
Details
stacktrace (2.19 KB, text/plain)
2016-07-01 12:12 UTC, IrianR
Details
stacktrace (2.19 KB, text/plain)
2016-07-04 08:12 UTC, IrianR
Details
stacktrace (2.19 KB, text/plain)
2016-07-07 09:51 UTC, IrianR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Havlin 2016-03-15 13:02:41 UTC
Build: NetBeans IDE Dev (Build 201603140002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Mac OS X

User Comments:
jhavlin: Invoking "Debug Test File" from editor.




Stacktrace: 
java.lang.NullPointerException
   at org.openide.text.Line$Set.computeOriginal(Line.java:583)
   at org.openide.text.Line$Set.getOriginalLineNumber(Line.java:528)
   at org.netbeans.modules.debugger.jpda.projectsui.LineTranslations.getOriginalLineNumber(LineTranslations.java:234)
   at org.netbeans.modules.debugger.jpda.projectsui.LineTranslations.getOriginalLineNumber(LineTranslations.java:174)
   at org.netbeans.modules.debugger.jpda.projectsui.EditorContextImpl.getLineNumber(EditorContextImpl.java:363)
   at org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.updateLineNumber(LineBreakpointImpl.java:159)
Comment 1 Jaroslav Havlin 2016-03-15 13:02:42 UTC
Created attachment 158875 [details]
stacktrace
Comment 2 IrianR 2016-07-01 12:12:34 UTC
Created attachment 160215 [details]
stacktrace

Start remote debugging of a maven project.
Comment 3 IrianR 2016-07-04 08:12:43 UTC
Created attachment 160241 [details]
stacktrace

Remote debugging a maven application, this happens every time, the secont time I start debugging even if I debug different application.

The only workaround I found so far is to completely restart the whole IDE, this gives me one more debug session.

As it is right now the IDE is able to debug only once.
Comment 4 Exceptions Reporter 2016-07-04 08:12:48 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=223027
Comment 5 IrianR 2016-07-07 09:51:46 UTC
Created attachment 160297 [details]
stacktrace

Debugging a tomcat instance for the second time after the IDE has started.
Comment 6 Martin Entlicher 2016-07-11 12:46:48 UTC
getOriginalLineNumber(Line.java:528) is called with a null line.
Comment 7 Martin Entlicher 2016-07-11 12:55:51 UTC
Fixed by changeset:   299128:48bb9d53ebbc
Comment 8 Quality Engineering 2016-07-12 01:53:18 UTC
Integrated into 'main-silver', will be available in build *201607120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/48bb9d53ebbc
User: mentlicher@netbeans.org
Log: #258380: Prevent from NPE.