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 177962 - [68cat] NullPointerException at org.netbeans.modules.java.editor.codegen.EqualsHashCodeGenerator$1.run
Summary: [68cat] NullPointerException at org.netbeans.modules.java.editor.codegen.Equa...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-01 23:14 UTC by michbarsinai
Modified: 2009-12-08 02:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 161784


Attachments
stacktrace (2.99 KB, text/plain)
2009-12-01 23:14 UTC, michbarsinai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michbarsinai 2009-12-01 23:14:53 UTC
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)
Comment 1 michbarsinai 2009-12-01 23:14:58 UTC
Created attachment 91966 [details]
stacktrace
Comment 2 Max Sauer 2009-12-07 05:53:02 UTC
Fixed, please verify.
---
http://hg.netbeans.org/jet-main/rev/d77bc0a47f1c
Comment 3 Quality Engineering 2009-12-08 02:27:53 UTC
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