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 - Java class moving throws NPE at org.netbeans.modules.javafx.refactoring.repository.ClassModelFactory.createClassModel
Summary: Java class moving throws NPE at org.netbeans.modules.javafx.refactoring.repos...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks: 173077
  Show dependency tree
 
Reported: 2010-03-12 05:57 UTC by Alexandr Scherbatiy
Modified: 2010-03-16 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 166317


Attachments
stacktrace (1.65 KB, text/plain)
2010-03-12 05:57 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
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