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 177298 - NullPointerException at org.netbeans.modules.javafx.refactoring.impl.scanners.RenameScanner.visitVariable
Summary: NullPointerException at org.netbeans.modules.javafx.refactoring.impl.scanners...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 07:25 UTC by Alexandr Scherbatiy
Modified: 2009-12-18 03:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 162574


Attachments
stacktrace (3.61 KB, text/plain)
2009-11-20 07:25 UTC, Alexandr Scherbatiy
Details
stacktrace (3.61 KB, text/plain)
2009-11-23 03:17 UTC, Alexandr Scherbatiy
Details
stacktrace (4.43 KB, text/plain)
2009-11-23 04:20 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-11-20 07:25:55 UTC
Build: NetBeans IDE Dev (Build 200911200201)
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

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.javafx.refactoring.impl.scanners.RenameScanner.visitVariable(RenameScanner.java:122)
        at org.netbeans.modules.javafx.refactoring.impl.scanners.RenameScanner.visitVariable(RenameScanner.java:61)
        at com.sun.tools.javafx.tree.JFXVarBase.accept(JFXVarBase.java:53)
        at com.sun.javafx.api.tree.JavaFXTreePathScanner.scan(JavaFXTreePathScanner.java:63)
        at org.netbeans.modules.javafx.refactoring.impl.scanners.BaseRefactoringScanner.scan(BaseRefactoringScanner.java:71)
        at com.sun.javafx.api.tree.JavaFXTreeScanner.scanAndReduce(JavaFXTreeScanner.java:84)
Comment 1 Alexandr Scherbatiy 2009-11-20 07:25:59 UTC
Created attachment 91428 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2009-11-23 03:17:04 UTC
Created attachment 91511 [details]
stacktrace
Comment 3 Alexandr Scherbatiy 2009-11-23 03:19:35 UTC
Steps to reproduce:

- Create New Project ->Samples-> JavaFX -> Media Box sample
- Open com.sun.javafx.mediabox.MediaBox file
- Go to the 'public function impl_clearMediaPlayer(mp: MediaPlayer) ' function
- Refactor->rename the 'mp' variable in the ' if (mp3.media != null) {' line to mp2
The exception pops up.
Comment 4 Alexandr Scherbatiy 2009-11-23 04:20:06 UTC
Created attachment 91516 [details]
stacktrace
Comment 5 J Bachorik 2009-12-01 03:35:57 UTC
I am unable to reproduce it following the given steps
Comment 6 Alexandr Scherbatiy 2009-12-18 03:16:21 UTC
verified in NetBeans-JavaFX-Soma: #69