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 146131

Summary: NPE in editor: javac.util.Name.append
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: EditorAssignee: David Strupl <dstrupl>
Status: VERIFIED WORKSFORME    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 146952    
Attachments: IDE log file

Description Alexandr Scherbatiy 2008-09-04 08:41:09 UTC
Project JavaFX_NB_Plugin_NB65_daily: #229 	04-Sep-2008 02:01:21
Product Version         = NetBeans IDE Dev (Build 200809031401)
Operating System        = Windows XP version 5.1 running on x86
Java; VM; Vendor        = 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11; Sun Microsystems Inc.

Steps to reproduce:

- Create a JavaFX Script project
- Type 'System.'
  The NPE pops up:

java.lang.NullPointerException
	at com.sun.tools.javac.util.Name.append(Name.java:314)
	at com.sun.tools.javac.code.Symbol$TypeSymbol.formFullName(Symbol.java:508)
	at com.sun.tools.javac.code.Symbol$ClassSymbol.<init>(Symbol.java:696)
	at com.sun.tools.javac.code.Type$ErrorType.<init>(Type.java:1190)
	at com.sun.tools.javafx.comp.JavafxAttr.selectSym(JavafxAttr.java:729)
	at com.sun.tools.javafx.comp.JavafxAttr.visitSelect(JavafxAttr.java:601)
	at com.sun.tools.javafx.tree.JFXSelect.accept(JFXSelect.java:52)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:266)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:302)
	at com.sun.tools.javafx.comp.JavafxAttr.visitBlockExpression(JavafxAttr.java:1237)
	at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:78)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:266)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:292)
Comment 1 Alexandr Scherbatiy 2008-09-04 08:41:30 UTC
Created attachment 69014 [details]
IDE log file
Comment 2 Lark Fitzgerald 2008-09-17 15:11:59 UTC
This error no longer occurs.  Now the completion list appears with no exception.

Tested using FX Cont trunk build 178 (Sep 10, 2008 4:20:38 PM) on NB6.5:
Product Version: NetBeans IDE Dev (Build 20080916)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 3 Alexandr Scherbatiy 2008-09-18 10:55:42 UTC
verified in 2008-09-18_05-17-09.zip