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 47453 - NPE in Override/Impl when invoking from inner class
Summary: NPE in Override/Impl when invoking from inner class
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 47608 (view as bug list)
Depends on:
Blocks: 47491
  Show dependency tree
 
Reported: 2004-08-19 12:03 UTC by psuk
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample class for reproducing the problem (473 bytes, text/plain)
2004-08-19 12:04 UTC, psuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description psuk 2004-08-19 12:03:26 UTC
1. Use class from attachement
2. Point caret at the end of line 26
   super("Ok");
3. Invoke Override/Implement by CTRL+I
-> NPE
java.lang.NullPointerException
at
org.netbeans.modules.java.tools.InheritanceSupport2.isOverriden(InheritanceSupport2.java:403)
at
org.netbeans.modules.java.tools.InheritanceSupport2.collectClassMethods(InheritanceSupport2.java:426)

...
Comment 1 psuk 2004-08-19 12:04:58 UTC
Created attachment 16946 [details]
Sample class for reproducing the problem
Comment 2 Martin Matula 2004-08-19 13:13:57 UTC
Dane please look at it.
Comment 3 Martin Matula 2004-08-20 23:10:12 UTC
*** Issue 47608 has been marked as a duplicate of this issue. ***
Comment 4 Daniel Prusa 2004-09-06 14:46:29 UTC
Fixed by rewriting Override/Implement action to JMI.