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 248003 - NullPointerException at org.netbeans.modules.cnd.debugger.common2.debugger.NativeSessionProvider.getSessionName
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.0
Hardware: All All
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-17 13:37 UTC by GenKabuki
Modified: 2014-11-11 12:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 212801


Attachments
stacktrace (1.76 KB, text/plain)
2014-10-17 13:37 UTC, GenKabuki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description GenKabuki 2014-10-17 13:37:47 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows XP

User Comments:
genkabuki: Lauching debugger to debug project.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeSessionProvider.getSessionName(NativeSessionProvider.java:82)
   at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:325)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerManager.debugNoAsk(NativeDebuggerManager.java:999)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerManager.startDebugger(NativeDebuggerManager.java:970)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerManager.debug(NativeDebuggerManager.java:1209)
   at org.netbeans.modules.cnd.debugger.common2.DbgActionHandler$2.run(DbgActionHandler.java:151)
Comment 1 GenKabuki 2014-10-17 13:37:49 UTC
Created attachment 149958 [details]
stacktrace
Comment 2 Maria Tishkova 2014-10-27 14:08:07 UTC
org.netbeans.modules.cnd.debugger.common2.debugger.NativeSessionProvider.getSessionName

should be re-implemented
Comment 3 Maria Tishkova 2014-11-06 10:22:14 UTC
sorry. incorrect whiteboard, marked it as patch 2 candidate on Monday
Comment 4 Maria Tishkova 2014-11-06 10:44:58 UTC
fixed in 280610:d0d7c134ebb7
(the fix is just revert of changes which introduced this exception)
from the user point of view: in case of Mixed development the name of native session will be displayed in Sessions view as "placeholder-for-NativeSessionProvider.getSessionName()" when it is not active
Comment 5 Quality Engineering 2014-11-07 03:51:08 UTC
Integrated into 'main-silver', will be available in build *201411070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d0d7c134ebb7
User: Maria Dalmatova <mromashova@netbeans.org>
Log: fixed bz#247264 and bz#248003
rollbacked changes made to display native session name in mixed development as it brakes debugger
Comment 6 Quality Engineering 2014-11-10 23:22:45 UTC
Integrated into 'releases/release801', will be available in build *201411102027* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/e2d4b72d19f3
User: Maria Dalmatova <mromashova@netbeans.org>
Log: fixed bz#247264 and bz#248003
rollbacked changes made to display native session name in mixed development as it brakes debugger
(transplanted from d0d7c134ebb7e07a7fad2eca5a585eb8b9137dd9)