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 70687 - NPE when doing Move Inner to Outer refactoring
Summary: NPE when doing Move Inner to Outer refactoring
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-21 12:11 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2005-12-21 12:11:27 UTC
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)
Comment 1 Jan Becicka 2005-12-22 09:58:33 UTC
Again - it works for me.
Comment 2 _ tboudreau 2006-01-01 22:12:45 UTC
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?
Comment 3 Jan Becicka 2006-10-26 16:27:46 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 4 Quality Engineering 2007-09-20 12:46:38 UTC
Reorganization of java component