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 179949 - Moving class from file throws NPE at RefactoringActionsProvider$6.createRefactoringUI
Summary: Moving class from file throws NPE at RefactoringActionsProvider$6.createRefac...
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: http://javafx-jira.kenai.com/browse/J...
Keywords:
Depends on:
Blocks: 173077
  Show dependency tree
 
Reported: 2010-01-28 03:55 UTC by Alexandr Scherbatiy
Modified: 2010-02-05 03:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 164663


Attachments
stacktrace (4.26 KB, text/plain)
2010-01-28 03:55 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-01-28 03:55:17 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
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: Steps to reproduce:

- Copy the code to the editor:
-------------------------------------------
class A{
    public var name:String = "A";
}

class B extends A{
    override var name = "B";
}
-------------------------------------------

- Right-click on the B class and invoke Refactor->Move 
The exception pops up




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javafx.refactoring.impl.RefactoringActionsProvider$6.createRefactoringUI(RefactoringActionsProvider.java:309)
   at org.netbeans.modules.javafx.refactoring.impl.RefactoringActionsProvider$TextComponentTask.run(RefactoringActionsProvider.java:480)
   at org.netbeans.modules.javafx.refactoring.impl.RefactoringActionsProvider$TextComponentTask.run(RefactoringActionsProvider.java:458)
   at org.netbeans.modules.javafx.source.parsing.LegacyUserTask.run(LegacyUserTask.java:68)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)
Comment 1 Alexandr Scherbatiy 2010-01-28 03:55:22 UTC
Created attachment 93626 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-01-29 03:19:45 UTC
The same exception is in the NetBeans-JavaFX-Soma:  #130
Comment 3 J Bachorik 2010-01-29 05:04:32 UTC
Basically caused by http://javafx-jira.kenai.com/browse/JFXC-3787
Worked around in http://hg.netbeans.org/javafx/rev/aeedcd8eec48
Comment 4 Alexandr Scherbatiy 2010-02-05 03:26:40 UTC
verified in NetBeans-JavaFX-Soma: #143