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.
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)
Created attachment 90836 [details] stacktrace
Created attachment 91246 [details] stacktrace
Created attachment 91248 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=161263
Steps to reproduce: - Copy the code to the editor: ----------------------------------------------- class A{} var seqf = function(a:A[[ | ]], b:String[[ | ]]):Boolean[[ | ]] { [] }; ----------------------------------------------- The exception pops up.
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.
It looks like it is on the list of issues to fix so I'll fix it asap.
fixed, changset: http://hg.netbeans.org/javafx/rev/04a2b1d546a5
Verified with NetBeans IDE Dev (Build 200911211401)