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 180137 - Function Refactoring throws NPE: #120577: Cannot resolve ElementHandle[kind=CLASS; sigs=mathematics.multidimensional.shape.MDShape$1MDShape$ObjLit$1 ]; file: null
Summary: Function Refactoring throws NPE: #120577: Cannot resolve ElementHandle[kind=C...
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: J Bachorik
Depends on:
Blocks: 173077
  Show dependency tree
Reported: 2010-02-02 03:52 UTC by Alexandr Scherbatiy
Modified: 2010-02-08 03:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 164811

stacktrace (2.04 KB, text/plain)
2010-02-02 03:52 UTC, Alexandr Scherbatiy
IDE log file (62.48 KB, application/octet-stream)
2010-02-05 02:42 UTC, Alexandr Scherbatiy

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-02-02 03:52:26 UTC
Build: NetBeans IDE Dev (Build 201001280200)
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:

- Open the attached project

- Open the mathematics.multidimensional.MDShape class
- Rfeactor->Rename the getPoints() function

The NPE pops up

java.lang.NullPointerException: #120577: Cannot resolve ElementHandle[kind=CLASS; sigs=mathematics.multidimensional.shape.MDShape$1MDShape$ObjLit$1 ]; file: null
   at org.netbeans.modules.javafx.refactoring.impl.javafxc.SourceUtils.getOverridingMethods(
   at org.netbeans.modules.javafx.refactoring.impl.plugins.RenameRefactoringPlugin.preCheck(
   at org.netbeans.modules.javafx.refactoring.impl.plugins.JavaFXRefactoringPlugin$1.check(
   at org.netbeans.modules.javafx.refactoring.impl.plugins.JavaFXRefactoringPlugin$
   at org.netbeans.modules.javafx.refactoring.impl.plugins.JavaFXRefactoringPlugin$
Comment 1 Alexandr Scherbatiy 2010-02-02 03:52:30 UTC
Created attachment 93750 [details]
Comment 2 Alexandr Scherbatiy 2010-02-05 02:41:37 UTC
One more case:

- Copy the code to the editor:
abstract class A{
    public var name:String = "A";
    public abstract function g():Void;

var a = A{
    name: "Name"
    override function g() {


- Refactor->Rename the 'g' function in the 'A' class
The exception pops up.
Comment 3 Alexandr Scherbatiy 2010-02-05 02:42:35 UTC
Created attachment 93898 [details]
IDE log file
Comment 4 J Bachorik 2010-02-05 06:15:45 UTC
fixed in
Comment 5 Alexandr Scherbatiy 2010-02-08 03:21:07 UTC
verified in NetBeans-JavaFX-Soma: #146