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 172466 - NullPointerException at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan
Summary: NullPointerException at org.netbeans.modules.javafx.editor.format.JFXReformat...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Anton Chechel
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2009-09-17 12:14 UTC by Karol Harezlak
Modified: 2009-10-06 10:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158665


Attachments
stacktrace (7.43 KB, text/plain)
2009-09-17 12:14 UTC, Karol Harezlak
Details
stacktrace (8.38 KB, text/plain)
2009-09-30 10:57 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karol Harezlak 2009-09-17 12:14:34 UTC
Build: NetBeans Platform Dev (Build nbms-and-javadoc-3939-on-090917)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-b02, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b02
OS: Linux, 2.6.24-24-generic, i386

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:426)
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:292)
        at com.sun.javafx.api.tree.JavaFXTreeScanner.scanAndReduce(JavaFXTreeScanner.java:84)
        at com.sun.javafx.api.tree.JavaFXTreeScanner.visitSequenceRange(JavaFXTreeScanner.java:356)
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitSequenceRange(JFXReformatTask.java:1960)
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitSequenceRange(JFXReformatTask.java:292)
Comment 1 Karol Harezlak 2009-09-17 12:14:39 UTC
Created attachment 87846 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2009-09-30 10:57:22 UTC
Build: NetBeans IDE 6.8 Beta (Build 200909281634)
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: 
Steps to reproduce:
- Format the code 
--------------------------------------------------------------------
var seq = for(i in [1..3]){
    i * i
}
--------------------------------------------------------------------

The NPE  pops up.

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:430)
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:288)
        at com.sun.javafx.api.tree.JavaFXTreeScanner.scanAndReduce(JavaFXTreeScanner.java:84)
        at com.sun.javafx.api.tree.JavaFXTreeScanner.visitSequenceRange(JavaFXTreeScanner.java:356)
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitSequenceRange(JFXReformatTask.java:1984)
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitSequenceRange(JFXReformatTask.java:288)
Comment 3 Alexandr Scherbatiy 2009-09-30 10:57:26 UTC
Created attachment 88582 [details]
stacktrace
Comment 4 Anton Chechel 2009-10-01 12:33:39 UTC
fixed
http://hg.netbeans.org/javafx/rev/171f73b3cc83
Comment 5 Alexandr Scherbatiy 2009-10-06 10:26:37 UTC
verified in netbeans-trunk-nightly-200910030241-javafx-full.zip