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 168747 - [69cat] NullPointerException at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run
Summary: [69cat] NullPointerException at org.netbeans.modules.java.editor.codegen.Gett...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-17 15:31 UTC by felix_rafael
Modified: 2010-12-05 06:25 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153838


Attachments
stacktrace (3.26 KB, text/plain)
2009-07-17 15:32 UTC, felix_rafael
Details
stacktrace (2.98 KB, text/plain)
2009-08-03 15:18 UTC, jonast
Details

Note You need to log in before you can comment on or make changes to this bug.
Description felix_rafael 2009-07-17 15:31:55 UTC
This issue was originally marked as duplicate of issue 159632, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments:
felix_rafael: Gerar getter e setter fora das chaves da classe

GUEST: Trying generate getters/setters for 2 fields.

johnsonlau: Generating a getter/setter for field.



Stacktrace: 
java.lang.NullPointerException<br/>
        at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run(GetterSetterGenerator.java:214)<br/>
        at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run(GetterSetterGenerator.java:209)<br/>
        at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:647)<br/>
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)<br/>
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)<br/>
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)<br/>
Comment 1 felix_rafael 2009-07-17 15:32:03 UTC
Created attachment 84886 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-07-17 15:32:18 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153838
Comment 3 Max Sauer 2009-07-20 11:18:26 UTC
Please provide detailed steps to reproduce along with sample source or project, thanks.
Comment 4 jonast 2009-08-03 15:18:36 UTC
This issue was originally marked as duplicate of issue 159632, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, amd64

User Comments: 
When cursor is at the end of file when generating getters and setters this problem occurs

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run(GetterSetterGenerator.java:214)
        at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run(GetterSetterGenerator.java:209)
        at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:647)
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)
Comment 5 jonast 2009-08-03 15:18:47 UTC
Created attachment 85705 [details]
stacktrace
Comment 6 Exceptions Reporter 2009-08-03 15:18:52 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153838
Comment 7 Exceptions Reporter 2009-08-14 12:59:56 UTC
This issue already has 8 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153838
Comment 8 Peter Pis 2009-09-03 12:47:17 UTC
Somebody could provide reproducible test case.
Comment 9 Exceptions Reporter 2009-09-24 10:51:59 UTC
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153838
Comment 10 Exceptions Reporter 2009-09-30 08:51:20 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153838
Comment 11 Exceptions Reporter 2009-09-30 12:45:39 UTC
This issue already has 11 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153838
Comment 12 misterm 2010-03-11 09:19:10 UTC
This is somewhat related to focus. The popup focus got lost somehow and couldn't be closed, so that's why I clicked on Getter and setter as I originally intended to do.
Comment 13 felix_rafael 2010-03-15 19:34:57 UTC
This error is raised when the Alt+Ins and selected Getter and Setter out of the braces }

at the 6.8 out of the braces not have the options to generate getter and setter.

I'm see it was fixed...
Comment 14 Dusan Balek 2010-12-03 14:02:11 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/be2a58fa7875
Comment 15 Quality Engineering 2010-12-05 06:25:01 UTC
Integrated into 'main-golden', will be available in build *201012050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/be2a58fa7875
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #168747: NullPointerException at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run - fixed.