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 66476 - NPE thrown when invoking override action
Summary: NPE thrown when invoking override action
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 13:40 UTC by Milan Kubec
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (2.28 KB, text/plain)
2005-10-11 13:41 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-10-11 13:40:38 UTC
[dev-200510061800, JDK 1.5.0_05]

I have class extending JComponent and I used Ctrl+I to override some its
methods. Then I changed 'Return Generation mode' in Classic Options under Java
Sources | Override Methods to "return null". After that I invoked Ctrl+I again
in the class and got attached NPE. Not reproducible.
Comment 1 Milan Kubec 2005-10-11 13:41:46 UTC
Created attachment 25800 [details]
exc stack trace
Comment 2 Daniel Prusa 2005-10-14 13:35:39 UTC
I am not able to reproduce this bug, however, I have added a check preventing
NPE to be thrown.

(fixed in trunk)
/cvs/java/src/org/netbeans/modules/java/tools/OverrideAction.java
new revision: 1.33; previous revision: 1.32
Comment 3 Milan Kubec 2005-10-24 11:29:37 UTC
Not able to reproduce, we'll see. Verified.