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.
Same source file as the bug I just filed, this time with the inner class Tab. Note I had added the static keyword to this class' definition just before performing the refactoring. java.lang.NullPointerException at org.netbeans.modules.javacore.internalapi.JavaModelUtil.unwrapElement (JavaModelUtil.java:384) at org.netbeans.modules.javacore.internalapi.JavaModelUtil.typeToTypeReference (JavaModelUtil.java:268) at org.netbeans.modules.javacore.internalapi.JavaModelUtil.resolveImportsForClass (JavaModelUtil.java:244) at org.netbeans.modules.refactoring.plugins.InnerToOuterRefactoringPlugin$ChangeCl assReferenceElement.performChange(InnerToOuterRefactoringPlugin.java:540) at org.netbeans.modules.refactoring.api.RefactoringSession.doRefactoring (RefactoringSession.java:67) at org.netbeans.modules.refactoring.ui.RefactoringPanel$1.run (RefactoringPanel.java:588) at org.openide.util.RequestProcessor$Task.run (RequestProcessor.java:493) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:926)
Again - it works for me.
Just a guess: Could this be an artifact of issue 70686 somehow corrupting MDR's data structures - or possibly, since I typed "static" and immediately invoked the refactoring, the refactoring is invoked against stale data about the class, without any reparse having happened?
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Reorganization of java component