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 59264 - [Override Methods] NullPointerException when Ctrl+I was typed
Summary: [Override Methods] NullPointerException when Ctrl+I was typed
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 61143 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-26 03:02 UTC by sviyer
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message Log (120.34 KB, text/plain)
2005-05-26 03:03 UTC, sviyer
Details
exception stack trace (2.70 KB, text/plain)
2005-08-03 10:07 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sviyer 2005-05-26 03:02:32 UTC
I typed ctrl+i by mistake and the ide throws NullPointerException
Comment 1 sviyer 2005-05-26 03:03:24 UTC
Created attachment 22312 [details]
Message Log
Comment 2 Martin Roskanin 2005-05-30 09:47:22 UTC
java.lang.NullPointerException
	at
org.netbeans.modules.java.tools.OverrideAction.getJavaClass(OverrideAction.java:230)
	at
org.netbeans.modules.java.tools.OverrideAction.performAction(OverrideAction.java:76)
	at org.openide.util.actions.NodeAction$3.run(NodeAction.java:507)
...

Reassigning to java module
Comment 3 sviyer 2005-05-30 23:48:44 UTC
Please find info as requested - (does not seem to happen in Build 200505252000)
This was the build I was using when I reported the defect
-----------------------------------------------------------------------
System Info: 
  Product Version       = NetBeans IDE Dev (Build 200505181800)
  Operating System      = Windows XP version 5.1 running on x86
  Java; VM; Vendor      = 1.5.0_02; Java HotSpot(TM) Client VM 1.5.0_02-b09; Sun
Microsystems Inc.
  Java Home             = G:\Program Files\J2SE5.0_02\jre
  System Locale; Encod. = en_NZ (nb); Cp1252
  Home Dir; Current Dir = K:\Documents and Settings\Administrator;
D:\ProgramFiles\netbeans-4.2Dev
  IDE Install; User Dir = D:\ProgramFiles\netbeans-4.2Dev\platform5;
K:\Documents and Settings\Administrator\.netbeans\dev
  CLASSPATH             =
D:\ProgramFiles\netbeans-4.2Dev\platform5\lib\boot.jar;G:\Program
Files\J2SE5.0_02\lib\dt.jar;G:\Program Files\J2SE5.0_02\lib\tools.jar
  Boot & ext classpath  = G:\Program Files\J2SE5.0_02\jre\lib\rt.jar;G:\Program
Files\J2SE5.0_02\jre\lib\i18n.jar;G:\Program
Files\J2SE5.0_02\jre\lib\sunrsasign.jar;G:\Program
Files\J2SE5.0_02\jre\lib\jsse.jar;G:\Program
Files\J2SE5.0_02\jre\lib\jce.jar;G:\Program
Files\J2SE5.0_02\jre\lib\charsets.jar;G:\Program
Files\J2SE5.0_02\jre\classes;G:\Program
Files\J2SE5.0_02\jre\lib\ext\dnsns.jar;G:\Program
Files\J2SE5.0_02\jre\lib\ext\localedata.jar;G:\Program
Files\J2SE5.0_02\jre\lib\ext\sunjce_provider.jar;G:\Program
Files\J2SE5.0_02\jre\lib\ext\sunpkcs11.jar
  Dynamic classpath     =
D:\ProgramFiles\netbeans-4.2Dev\platform5\core\core.jar;D:\ProgramFiles\netbeans-4.2Dev\platform5\core\openide-loaders.jar;D:\ProgramFiles\netbeans-4.2Dev\platform5\core\openide.jar;D:\ProgramFiles\netbeans-4.2Dev\platform5\core\org-netbeans-swing-plaf.jar;D:\ProgramFiles\netbeans-4.2Dev\platform5\core\updater.jar;D:\ProgramFiles\netbeans-4.2Dev\nb4.1\core\org-netbeans-upgrader.jar;D:\ProgramFiles\netbeans-4.2Dev\nb4.1\core\locale\core_nb.jar;D:\ProgramFiles\netbeans-4.2Dev\nb4.1\core\locale\updater_nb.jar;D:\ProgramFiles\netbeans-4.2Dev\ide5\core\org-netbeans-modules-apisupport-ant-cli.jar;D:\ProgramFiles\netbeans-4.2Dev\ide5\core\org-netbeans-modules-utilities-cli.jar
-------------------------------------------------------------------------------
Comment 4 Max Sauer 2005-08-03 10:03:03 UTC
I'm getting a very similar exception when typing an errorrous import statement
like this:

import java.io*

and pressing Ctrl+I or invoking "Override methods" from menu. I'm attaching my
exception.

[200508021800. JDK 1.5.0_05 fcs b03. Solaris10 running on Sparc]
Comment 5 Max Sauer 2005-08-03 10:07:27 UTC
Created attachment 23439 [details]
exception stack trace
Comment 6 Pavel Flaska 2005-08-31 12:57:35 UTC
Fixed recently by Honza.

Checking in OverrideAction.java;
/cvs/java/src/org/netbeans/modules/java/tools/OverrideAction.java,v  <-- 
OverrideAction.java
new revision: 1.30; previous revision: 1.29
done
Comment 7 Pavel Flaska 2005-09-05 10:21:13 UTC
*** Issue 61143 has been marked as a duplicate of this issue. ***
Comment 8 Max Sauer 2005-09-12 10:32:24 UTC
Verified in 200509112000.