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.
Build: NetBeans IDE Dev (Build 200911301400) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: michbarsinai: Opened the "Insert code..." popup via altl-insert clicked alt (focus goes to the menu bar) clicked the insert code menu with the mouse, selected "Hash Code and equals", ticked some boxes and clicked "OK" bang! GUEST: Steps to reproduce: Make the "insert code" menu show up while editing a java class. press Alt (so that the focus goes to the menu bar) select "equals() and hashCode()" using the mouse select some fields click OK BANG :-) Stacktrace: java.lang.NullPointerException at org.netbeans.modules.java.editor.codegen.EqualsHashCodeGenerator$1.run(EqualsHashCodeGenerator.java:343) at org.netbeans.modules.java.editor.codegen.EqualsHashCodeGenerator$1.run(EqualsHashCodeGenerator.java:338) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:658) 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:190)
Created attachment 91966 [details] stacktrace
Fixed, please verify. --- http://hg.netbeans.org/jet-main/rev/d77bc0a47f1c
Integrated into 'main-golden', will be available in build *200912080200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d77bc0a47f1c User: Max Sauer <msauer@netbeans.org> Log: #177962: NPE at o.n.m.java.editor.codegen.EqualsHashCodeGenerator$1.run