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 170284

Summary: Introduce variable/field does not work correctly for null value
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2009-08-12 16:17:46 UTC
Product Version: NetBeans IDE Dev (Build 200908110201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.24-23-generic running on i386; UTF-8; en_US (nb)

Introduce variable/field does not work correctly for null value. It produces invalid code,

Steps to reproduce:
1) have a declaration
String s = null;

2) select null and invoke introduce field

-> private null newFiled; is produced
Comment 1 Martin Balin 2016-07-07 07:17:45 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss