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 - 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-04-01 09:54 UTC by Alexandr Scherbatiy
Modified: 2010-04-02 09:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167458


Attachments
stacktrace (1.41 KB, text/plain)
2010-04-01 09:54 UTC, Alexandr Scherbatiy
Details
stacktrace (1.41 KB, text/plain)
2010-04-01 10:07 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-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