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 193826 - NullPointerException at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run
Summary: NullPointerException at org.netbeans.modules.java.editor.codegen.GetterSetter...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 196049 196877 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-27 04:02 UTC by rdelaplante
Modified: 2011-05-11 19:37 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175359


Attachments
stacktrace (3.54 KB, text/plain)
2010-12-27 04:02 UTC, rdelaplante
Details
stacktrace (3.54 KB, text/plain)
2010-12-28 19:18 UTC, rdelaplante
Details
stacktrace (3.54 KB, text/plain)
2011-01-22 20:54 UTC, rdelaplante
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rdelaplante 2010-12-27 04:02:44 UTC
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)
Comment 1 rdelaplante 2010-12-27 04:02:48 UTC
Created attachment 104514 [details]
stacktrace
Comment 2 rdelaplante 2010-12-28 19:18:51 UTC
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.
Comment 3 Dusan Balek 2011-01-10 15:01:50 UTC
Are you able to reproduce the issue? If could you please create a reproducible test case and attach it to the issue? Thanks.
Comment 4 rdelaplante 2011-01-22 20:54:28 UTC
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.
Comment 5 Dusan Balek 2011-04-05 14:28:57 UTC
*** Bug 196877 has been marked as a duplicate of this bug. ***
Comment 6 Dusan Balek 2011-05-09 15:32:50 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/6d59e7cc8ff4
Comment 7 Dusan Balek 2011-05-10 07:23:18 UTC
*** Bug 196049 has been marked as a duplicate of this bug. ***
Comment 8 Quality Engineering 2011-05-11 19:37:25 UTC
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.