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.
This bug was originally marked as duplicate of bug 168747, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201012150001) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Linux User Comments: rdelaplante: Trying to insert getter/setter for new fields in class. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run(GetterSetterGenerator.java:218) at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run(GetterSetterGenerator.java:213) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:670) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:154) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:138) at org.netbeans.modules.parsing.impl.TaskProcessor$1.call(TaskProcessor.java:201)
Created attachment 104514 [details] stacktrace
Created attachment 104570 [details] stacktrace Inserting getter/setter for a new field I just added (but might not have saved yet). The type of the field is an enum in this class which may or may not have been saved yet.
Are you able to reproduce the issue? If could you please create a reproducible test case and attach it to the issue? Thanks.
Created attachment 105272 [details] stacktrace This problem is still happening. I added three new String fields to a class, then used ALT-INSERT to generate getter/setter for all three at once.
*** Bug 196877 has been marked as a duplicate of this bug. ***
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/6d59e7cc8ff4
*** Bug 196049 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201105111436* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6d59e7cc8ff4 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #193826: NullPointerException at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run - fixed.