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 201209190001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05 OS: Windows 7 User Comments: mienamoo: While testing the fix for Bug 218133, I started to move a brand new, empty class between two packages in the same Maven-based NetBeans Platform module. When I got to the Move Class dialog, I decided to check the To Type check box to see what it does. And at that point this exception occurred. This is a different exception from the previous one. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.refactoring.java.RefactoringUtils.getPackageName(RefactoringUtils.java:371) at org.netbeans.modules.refactoring.java.plugins.MoveFileRefactoringPlugin.getNewPackageName(MoveFileRefactoringPlugin.java:376) at org.netbeans.modules.refactoring.java.plugins.MoveFileRefactoringPlugin.getTargetPackageName(MoveFileRefactoringPlugin.java:400) at org.netbeans.modules.refactoring.java.plugins.MoveFileRefactoringPlugin.fastCheckParameters(MoveFileRefactoringPlugin.java:169) at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsFastCheckParams(AbstractRefactoring.java:530) at org.netbeans.modules.refactoring.api.AbstractRefactoring.fastCheckParameters(AbstractRefactoring.java:283)
Created attachment 124552 [details] stacktrace
There seems to be a difference when starting the refactoring from editor, or from the projects tab.
changeset: 48f4b7ab54cb user: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date: Thu Sep 20 03:19:40 2012 +0200 summary: #218591 - Merged MoveFile and MoveClass refactoring plugins
Integrated into 'main-golden', will be available in build *201209210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/48f4b7ab54cb User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #218591 - Merged MoveFile and MoveClass refactoring plugins
Verified with build 201209210001.