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

Summary: Debugger tooltip shows NULL on variable when it isn't
Product: debugger Reporter: twolf2919 <twolf2919>
Component: JavaAssignee: issues@debugger <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: screenshot of IDE showing the tooltip with NULL

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".