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 153660 - Debugger tooltip shows NULL on variable when it isn't
Summary: Debugger tooltip shows NULL on variable when it isn't
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 18:49 UTC by twolf2919
Modified: 2008-11-21 19:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
screenshot of IDE showing the tooltip with NULL (264.00 KB, image/png)
2008-11-21 18:50 UTC, twolf2919
Details

Note You need to log in before you can comment on or make changes to this bug.
Description twolf2919 2008-11-21 18:49:23 UTC
I set a breakpoint on the line after the creation of an object.  When the breakpoint was hit, I hovered the mouse over
the object reference variable and the tooltip said that the variable was NULL.  But, of course it wasn't.  I'm attaching
a screenshot that shows the tooltip and, if you look below, in the "Local Variables" tab, the variable shows having
content (and, of course, on subsequent lines, the code then calls methods on that object).
Comment 1 twolf2919 2008-11-21 18:50:19 UTC
Created attachment 74024 [details]
screenshot of IDE showing the tooltip with NULL
Comment 2 twolf2919 2008-11-21 19:10:03 UTC
Someone on the nbusers forum just informed me that the tooltip just shows the object's toString() which, in this case,
returned NULL.  How does one tell from this tooltip:
    appGroup = (com.netforensics.fw.lang.ApplicationGroup) null
that the toString() of ApplicationGroup returned null?   To me, the tooltip implies that appGroup is NULL cast as an
ApplicationGroup object.

Maybe it would be better to have the tooltip say something like:
    appGroup = 0xABCD ["null" from ApplicationGroup.toString()]

So I'm changing issue type to "ENHANCEMENT".