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 172472 - NullPointerException at ParametersPanel.showDialog
Summary: NullPointerException at ParametersPanel.showDialog
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: J Bachorik
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 172147 173077
  Show dependency tree
 
Reported: 2009-09-17 13:20 UTC by Alexandr Scherbatiy
Modified: 2009-09-29 10:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158670


Attachments
stacktrace (3.86 KB, text/plain)
2009-09-17 13:20 UTC, Alexandr Scherbatiy
Details
stacktrace (3.86 KB, text/plain)
2009-09-22 11:18 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-09-17 13:20:37 UTC
Build: NetBeans IDE Dev (Build 200909151512)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments:
sunflower: Copy the code to the editor:
---------------------------------------------------------------------------------------------------
import javafx.scene.Node;

import javafx.scene.Group;

import javafx.scene.shape.Rectangle;
import javafx.scene.CustomNode;


class MyCustomNode extends CustomNode {

    public override function create(): Node {
        var node:Node;
        
        Group{
            content: [
                node = Rectangle{}
            ]
        }
    }
}
---------------------------------------------------------------------------------------------------

- Select 'node' varibale on the line ' node = Rectangle{}' and rename it to node2

The exception pops up



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.showDialog(ParametersPanel.java:467)
        at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.refresh(RefactoringPanel.java:571)
        at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.<init>(RefactoringPanel.java:133)
        at org.netbeans.modules.refactoring.spi.ui.UI.openRefactoringUI(UI.java:83)
        at org.netbeans.modules.javafx.refactoring.impl.RefactoringActionsProvider$TextComponentTask.run(RefactoringActionsProvider.java:347)
        at org.netbeans.modules.javafx.refactoring.impl.javafxc.SourceUtils.invokeAfterScanFinished(SourceUtils.java:288)
Comment 1 Alexandr Scherbatiy 2009-09-17 13:20:43 UTC
Created attachment 87856 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2009-09-22 11:18:36 UTC
Build: NetBeans IDE Dev (Build 200909211401)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments: 
- Type
-----------------------------------------------------
var s = [1,2,3,4,5];
var t = for(n in s) s[n] * indexof n;
-----------------------------------------------------

- Refactor - Rename the 'n' variable to 'm'

The NPE pops up

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.showDialog(ParametersPanel.java:467)
        at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.refresh(RefactoringPanel.java:571)
        at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.<init>(RefactoringPanel.java:133)
        at org.netbeans.modules.refactoring.spi.ui.UI.openRefactoringUI(UI.java:83)
        at org.netbeans.modules.javafx.refactoring.impl.RefactoringActionsProvider$TextComponentTask.run(RefactoringActionsProvider.java:359)
        at org.netbeans.modules.javafx.refactoring.impl.javafxc.SourceUtils.invokeAfterScanFinished(SourceUtils.java:404)
Comment 3 Alexandr Scherbatiy 2009-09-22 11:18:40 UTC
Created attachment 88093 [details]
stacktrace
Comment 4 J Bachorik 2009-09-25 08:55:35 UTC
fixing- http://hg.netbeans.org/javafx/rev/dce2fce5385a
Comment 5 Alexandr Scherbatiy 2009-09-29 10:46:03 UTC
verified in netbeans-6.8beta-200909281634-javafx-full.zip