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.
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)
Created attachment 117983 [details] stacktrace
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.
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)
Ignore User Comments in Comment 0
Reproducible
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
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