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.
Product Version = NetBeans IDE Dev (Build 200911091156) (#fa9887b26708) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Copy the code to the editor: -------------------------------------------------------------------- class D{ var a:D; } class B extends D{ override var a = D{}; } -------------------------------------------------------------------- - Format the code The IDE is blocked There NPE in the IDE log file: java.lang.NullPointerException at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitVariable(JFXReformatTask.java:978) at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitVariable(JFXReformatTask.java:464) 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.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:618) at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.processClassMembers(JFXReformatTask.java:842) at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitClassDeclaration(JFXReformatTask.java:805) at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitClassDeclaration(JFXReformatTask.java:464) at com.sun.tools.javafx.tree.JFXClassDeclaration.accept(JFXClassDeclaration.java:149)
Created attachment 90698 [details] IDE log file
Created attachment 90699 [details] IDE Thread Dump
*** Bug 176239 has been marked as a duplicate of this bug. ***
NPE was fixed and according to log (issue #176239) there is no deadlock. It waits in runOffEDT() and editorPane wants to redraw itself and waits to readLock of document. User must wait till the end of reformatting process. After 6.8 editor guys will improve it.
verified in Build 200911190201