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

Summary: NPE when invoking Override Methods
Product: java Reporter: psuk <psuk>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

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.