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 239560

Summary: Dereferencing possible null pointer false positive in asserts
Product: java Reporter: mklaehn <mklaehn>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description mklaehn 2013-12-17 14:52:41 UTC
if there is a construct like the following

Map<Object, Object> m = new Map<>();
Object old = m.put("new", new Object());
assert null == old : "replaced old value of " + old.toString();

The mentioned hint is shown for old.toString()

###############################################################
Product Version: NetBeans IDE Dev (Build 201312160002)
Updates: Updates available
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b62
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b120
System: Windows 7 version 6.1 running on amd64; Cp1252; en (nb)
User directory: D:\netbeans-ide\201312160002\dev_user
Cache directory: W:\dev_cache
Comment 1 Jiri Prox 2013-12-17 15:03:22 UTC

*** This bug has been marked as a duplicate of bug 236940 ***