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 42893 - NPE when invoking Override Methods
Summary: NPE when invoking Override Methods
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-06 14:08 UTC by psuk
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description psuk 2004-05-06 14:08:00 UTC
Build: metastavbicka 040505, JDK 1.4.2-b28, WinXP 

Steps to reproduce:
1. Open JavaDoc NB project (checked out form
repository)
2. Open InheritanceSupport2 class
3. Invoke Override Methods (either from Tools menu
or by CTRL-I)

You'll get:

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
org.netbeans.modules.java.tools.InheritanceSupport2.collectClassMethods(InheritanceSupport2.java:380)
org.netbeans.modules.java.tools.InheritanceSupport2.run(InheritanceSupport2.java:272)

and dialog will be opened

4. Mark checkbox "Show Superclasses and
Interfaces" and you get

java.lang.NullPointerException
org.netbeans.modules.java.tools.InheritanceSupport2.getClasses(InheritanceSupport2.java:107)
org.netbeans.modules.java.tools.OverridePanel2.computeClasses(OverridePanel2.java:248)
Comment 1 Martin Matula 2004-05-06 15:50:08 UTC
Seems to be fixed in today's build. There were a significant changes
to how the attribution is done so it is very likely the case. I am not
able to reproduce it.
Comment 2 psuk 2004-05-10 20:03:51 UTC
Specify a target milestone when closing the bug, plz.