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 181908

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    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 166317
Bug Depends on:    
Bug Blocks: 173077    
Attachments: stacktrace

Description Alexandr Scherbatiy 2010-03-12 05:57:07 UTC
Build: NetBeans IDE Dev (Build 201003110200)
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: #182

Steps to reproduce:

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

- Go to the mathematics.multidimensional package
- Refactor->Move  the ICMDVector java class to mathematics.multidimensional.vector package

The exception pops up.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javafx.refactoring.repository.ClassModelFactory.createClassModel(ClassModelFactory.java:648)
   at org.netbeans.modules.javafx.refactoring.repository.ClassModelFactory.classModelFor(ClassModelFactory.java:617)
   at org.netbeans.modules.javafx.refactoring.impl.plugins.MoveRefactoringPlugin$6.prepareTransformations(MoveRefactoringPlugin.java:292)
   at org.netbeans.modules.javafx.refactoring.impl.plugins.BaseRefactoringElementImplementation.getTransformations(BaseRefactoringElementImplementation.java:178)
   at org.netbeans.modules.javafx.refactoring.impl.plugins.BaseRefactoringElementImplementation.<init>(BaseRefactoringElementImplementation.java:91)
   at org.netbeans.modules.javafx.refactoring.impl.plugins.BaseRefactoringElementImplementation.<init>(BaseRefactoringElementImplementation.java:79)
Comment 1 Alexandr Scherbatiy 2010-03-12 05:57:11 UTC
Created attachment 95085 [details]
stacktrace
Comment 2 J Bachorik 2010-03-12 09:52:19 UTC
fixed http://hg.netbeans.org/javafx/rev/b506ad80733f
Comment 3 Alexandr Scherbatiy 2010-03-16 09:14:45 UTC
verified in NetBeans-JavaFX-Soma: #187