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 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/>
Created attachment 84886 [details] stacktrace
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=153838
Please provide detailed steps to reproduce along with sample source or project, thanks.
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)
Created attachment 85705 [details] stacktrace
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=153838
This issue already has 8 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=153838
Somebody could provide reproducible test case.
This issue already has 9 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=153838
This issue already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=153838
This issue already has 11 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=153838
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.
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...
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/be2a58fa7875
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.