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 203663 - NullPointerException at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.replaceWatch
Summary: NullPointerException at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImp...
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
: 203667 218358 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-13 15:17 UTC by tbrunhoff
Modified: 2012-10-26 11:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181971


Attachments
stacktrace (2.66 KB, text/plain)
2011-10-13 15:18 UTC, tbrunhoff
Details
gdb log (2.86 KB, text/plain)
2011-10-13 16:14 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2011-10-13 15:17:59 UTC
Build: NetBeans IDE Dev (Build 201110050601)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Linux

User Comments:
tbrunhoff: typing in a new watch value.

tbrunhoff: Typing in a new watch value (possibly misspelled).

tbrunhoff: modifying a watch value.  The value is req.sDesc.sampleNum, but the variable window chokes on sampleNum, even though it is valid.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.replaceWatch(GdbDebuggerImpl.java:2151)
   at org.netbeans.modules.cnd.debugger.common2.debugger.VariableModel.setName(VariableModel.java:302)
   at org.netbeans.spi.viewmodel.Models$CompoundNodeModel.setName(Models.java:1127)
   at org.netbeans.spi.viewmodel.Models$CompoundModel.setName(Models.java:4146)
   at org.netbeans.modules.viewmodel.TreeModelNode.setName(TreeModelNode.java:978)
   at org.openide.explorer.view.ViewUtil.nodeRename(ViewUtil.java:124)
Comment 1 tbrunhoff 2011-10-13 15:18:08 UTC
Created attachment 112009 [details]
stacktrace
Comment 2 tbrunhoff 2011-10-13 16:14:46 UTC
Created attachment 112012 [details]
gdb log
Comment 3 Egor Ushakov 2011-10-14 09:57:26 UTC
Todd, it looks like this gdb log is from another session without a problem specified, could you please attach the correct one?
Comment 4 tbrunhoff 2011-10-14 14:27:32 UTC
> it looks like this gdb log is from another session

Well, this was copied from the gdb debugger console at this time of the exception.

How can I make it clear to you that not saving gdb to a file is really a problem? This note in the wiki (http://wiki.netbeans.org/GdbLog) suggests that it is in a file, but it is not in /tmp, /usr/tmp, /var/tmp, ~/tmp, etc. Perhaps yet another bug.
Comment 5 Egor Ushakov 2011-10-17 11:46:59 UTC
*** Bug 203667 has been marked as a duplicate of this bug. ***
Comment 6 Egor Ushakov 2011-10-17 13:38:16 UTC
could you reproduce it anyhow?
Comment 7 Egor Ushakov 2011-10-17 14:30:11 UTC
Todd, please reopen if ever reproduced again and attach fresh gdb-log, I've fixed bug 203734 about saving gdb log so finding it should not be a problem any more
Comment 8 henk89 2012-10-26 11:32:13 UTC
*** Bug 218358 has been marked as a duplicate of this bug. ***