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 262554 - NullPointerException at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.expandCanonicalPath
Summary: NullPointerException at org.netbeans.modules.cnd.debugger.common2.debugger.Na...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
: 262790 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-23 20:18 UTC by Exceptions Reporter
Modified: 2016-08-31 17:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 224813


Attachments
stacktrace (1.74 KB, text/plain)
2016-06-23 20:18 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-06-23 20:18:45 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: OpenJDK 64-Bit Server VM, 25.91-b14, OpenJDK Runtime Environment, 1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14
OS: Linux

User Comments:
GUEST: Compiled code, tried to run the debugger.

Netbeans Window with "Connecting debugger..." appears.
Netbeans crash report showing up with a NullPointerException in org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerimpl.expandCanonicalPath




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.expandCanonicalPath(NativeDebuggerImpl.java:348)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.remoteToLocal(NativeDebuggerImpl.java:414)
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl$MILocation.make(GdbDebuggerImpl.java:224)
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.genericStoppedWithSrc(GdbDebuggerImpl.java:3775)
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.access$5500(GdbDebuggerImpl.java:141)
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl$40.onDone(GdbDebuggerImpl.java:4026)
Comment 1 Exceptions Reporter 2016-06-23 20:18:47 UTC
Created attachment 160151 [details]
stacktrace
Comment 2 Maria Tishkova 2016-07-07 08:05:48 UTC
fixed in 

changeset:   298976:93a07a6b9d48
tag:         tip
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Thu Jul 07 11:04:55 2016 +0300
summary:     fixed bz#262554 - NullPointerException at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.expandCanonicalPath



but this fixed prevents NPE only.
NPE could occurr because of func name is unknown (markes with ?) and file name is absent in stack, probably the code was compiled without debug info?
Comment 3 Quality Engineering 2016-07-08 01:50:10 UTC
Integrated into 'main-silver', will be available in build *201607080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/93a07a6b9d48
User: Maria Dalmatova <mromashova@netbeans.org>
Log: fixed bz#262554 - NullPointerException at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.expandCanonicalPath
but this fixed prevents NPE only.
NPE could occurr because of func name is unknown (markes with ?) and file name is absent in stack, probably the code was compiled without debug info?
Comment 4 Maria Tishkova 2016-08-31 17:05:36 UTC
*** Bug 262790 has been marked as a duplicate of this bug. ***