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 176575 - NullPointerException at com.sun.tools.javafx.tree.JavafxPretty.ary
Summary: NullPointerException at com.sun.tools.javafx.tree.JavafxPretty.ary
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-11 10:40 UTC by Andrei Chistiakov
Modified: 2009-11-23 03:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 161263


Attachments
stacktrace (5.71 KB, text/plain)
2009-11-11 10:40 UTC, Andrei Chistiakov
Details
stacktrace (5.71 KB, text/plain)
2009-11-18 06:12 UTC, Andrei Chistiakov
Details
stacktrace (5.71 KB, text/plain)
2009-11-18 06:24 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2009-11-11 10:40:50 UTC
Build: NetBeans IDE Dev (Build 200911091156)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP, 5.1, x86

User Comments:
ca-nb: added the following line into a newly created empty JavaFX file:
var seqf = function(a:A[[ | ]], b:String[[ | ]]):Boolean[[ | ]] { [] };



Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javafx.tree.JavafxPretty.ary(JavafxPretty.java:1130)
        at com.sun.tools.javafx.tree.JavafxPretty.visitTypeClass(JavafxPretty.java:1085)
        at com.sun.tools.javafx.tree.JFXTypeClass.accept(JFXTypeClass.java:56)
        at com.sun.tools.javafx.tree.JavafxPretty.printExpr(JavafxPretty.java:180)
        at com.sun.tools.javafx.tree.JavafxPretty.printExpr(JavafxPretty.java:195)
        at com.sun.tools.javafx.tree.JavafxPretty.printTypeSpecifier(JavafxPretty.java:1077)
Comment 1 Andrei Chistiakov 2009-11-11 10:40:54 UTC
Created attachment 90836 [details]
stacktrace
Comment 2 Andrei Chistiakov 2009-11-18 06:12:19 UTC
Created attachment 91246 [details]
stacktrace
Comment 3 Alexandr Scherbatiy 2009-11-18 06:24:18 UTC
Created attachment 91248 [details]
stacktrace
Comment 4 Exceptions Reporter 2009-11-18 06:24:25 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=161263
Comment 5 Alexandr Scherbatiy 2009-11-18 06:30:54 UTC
Steps to reproduce:

- Copy the code to the editor:
-----------------------------------------------
class A{}
var seqf = function(a:A[[ | ]], b:String[[ | ]]):Boolean[[ | ]] { [] };
-----------------------------------------------

The exception pops up.
Comment 6 Karol Harezlak 2009-11-20 08:03:50 UTC
Not much I can do except hide this exception. For some reason tree node is in inconsistent state and calling node.toString() cause NPE. I think it's not a stopper so I'd rather fix this issue in incoming patch then in this release but decision is up to QA.
Comment 7 Karol Harezlak 2009-11-20 08:07:29 UTC
It looks like it is on the list of issues to fix so I'll fix it asap.
Comment 8 Karol Harezlak 2009-11-20 08:24:02 UTC
fixed,

changset:

http://hg.netbeans.org/javafx/rev/04a2b1d546a5
Comment 9 Andrei Chistiakov 2009-11-23 03:31:35 UTC
Verified with NetBeans IDE Dev (Build 200911211401)