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 210867 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.ExtractSuperclassRefactoringPlugin$CreateSuperclassElement.run
Summary: NullPointerException at org.netbeans.modules.refactoring.java.plugins.Extract...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-08 07:23 UTC by MackSix
Modified: 2012-04-12 09:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186777


Attachments
stacktrace (6.05 KB, text/plain)
2012-04-08 07:23 UTC, MackSix
Details
Project to use for reproduction. (34.49 KB, application/zip)
2012-04-08 07:39 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-04-08 07:23:50 UTC
Build: NetBeans IDE Dev (Build 201204060400)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
MackSix: 1.) Refactor>>Create SuperClass and methods chosen disappeared from subclass, but they were not written to the newely created SuperClass file. 2.) Clicked Undo and the "Yes" button and methods showed up in SuperClass but not subclass. 3.) While viewing subclass, clicked Undo again and this NullPointerException happend.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.java.plugins.ExtractSuperclassRefactoringPlugin$CreateSuperclassElement.run(ExtractSuperclassRefactoringPlugin.java:491)
   at org.netbeans.modules.refactoring.java.plugins.ExtractSuperclassRefactoringPlugin$CreateSuperclassElement.run(ExtractSuperclassRefactoringPlugin.java:335)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:670)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:660)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:487)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:583)
Comment 1 MackSix 2012-04-08 07:23:56 UTC
Created attachment 117983 [details]
stacktrace
Comment 2 MackSix 2012-04-08 07:39:59 UTC
Created attachment 117984 [details]
Project to use for reproduction.

1.) Open attached project and Open up all Java source files in Editor.
2.) Refactor>>Extract Superclass on SuperClass.java
3.) Name "SuperDuperClass"and Choose all 3 methods.
4.) Click Refactor Button.
5.) Click Undo Button.
6.) Click Redo Button.

This NullPointerException happens.
Comment 3 MackSix 2012-04-08 07:40:51 UTC
Product Version: NetBeans IDE Dev (Build 201204060400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 4 MackSix 2012-04-08 07:52:12 UTC
Ignore User Comments in Comment 0
Comment 5 Jan Becicka 2012-04-10 08:50:08 UTC
Reproducible
Comment 6 Jan Becicka 2012-04-10 13:28:09 UTC
Changeset: 340e13c2038c
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2012-04-10 15:25
Message:   
Issue #210867 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.ExtractSuperclassRefactoringPlugin$CreateSuperclassElement.run
Comment 7 Quality Engineering 2012-04-12 09:55:30 UTC
Integrated into 'main-golden', will be available in build *201204120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/340e13c2038c
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #210867 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.ExtractSuperclassRefactoringPlugin$CreateSuperclassElement.run