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 183332

Summary: Java class moving throws NPE at org.netbeans.modules.javafx.refactoring.repository.ClassModelFactory.createClassModel
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: normal CC: sunflower
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 167458
Bug Depends on:    
Bug Blocks: 173077    
Attachments: stacktrace
stacktrace

Description Alexandr Scherbatiy 2010-04-01 09:54:06 UTC
Build: NetBeans IDE Dev (Build 201003290201)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP

User Comments:
sunflower: NetBeans-JavaFX-Soma:  #205

Steps to reproduce:

- Open the attached project
- Go to the mathematics.multidimensional package
- Refactor-> Rename the IMDVector class to IMDVector2
- Refactor-> Rename the IMDTransform  class to IMDTransform2
- Refactor-> Move the ICMDVector to mathematics.multidimensional.vector package

The exception pops up
JavaFX project
http://netbeans.org/bugzilla/attachment.cgi?id=96163




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javafx.refactoring.repository.ClassModelFactory.createClassModel(ClassModelFactory.java:672)
   at org.netbeans.modules.javafx.refactoring.repository.ClassModelFactory.classModelFor(ClassModelFactory.java:641)
   at org.netbeans.modules.javafx.refactoring.impl.plugins.MoveRefactoringPlugin$6.prepareTransformations(MoveRefactoringPlugin.java:433)
   at org.netbeans.modules.javafx.refactoring.impl.plugins.elements.BaseRefactoringElementImplementation.getTransformations(BaseRefactoringElementImplementation.java:177)
   at org.netbeans.modules.javafx.refactoring.impl.plugins.elements.BaseRefactoringElementImplementation.hasChanges(BaseRefactoringElementImplementation.java:141)
   at org.netbeans.modules.javafx.refactoring.impl.plugins.MoveRefactoringPlugin.prepare(MoveRefactoringPlugin.java:284)
Comment 1 Alexandr Scherbatiy 2010-04-01 09:54:12 UTC
Created attachment 96512 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-04-01 10:07:25 UTC
Created attachment 96514 [details]
stacktrace
Comment 3 Alexandr Scherbatiy 2010-04-01 10:08:57 UTC
Steps to reproduce:

- Open the attached project
http://netbeans.org/bugzilla/attachment.cgi?id=96163

- Go to the mathematics.multidimensional package
- Refactor-> Move the ICMDVector to mathematics.multidimensional.vector package
Comment 4 J Bachorik 2010-04-01 10:52:48 UTC
fixed in http://hg.netbeans.org/javafx/rev/bcf86185d847
Comment 5 Alexandr Scherbatiy 2010-04-02 09:09:56 UTC
verified in NetBeans-JavaFX-Soma: #207