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 146296 - NPE Scope.lookup
Summary: NPE Scope.lookup
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 146952
  Show dependency tree
 
Reported: 2008-09-05 10:42 UTC by Alexandr Scherbatiy
Modified: 2008-09-18 09:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (50.95 KB, text/plain)
2008-09-05 10:47 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-09-05 10:42:02 UTC
JavaFX_NB_Plugin_NB65_daily: #230  05-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 file:
  --------------------------------
  var d = "";
  d.
  --------------------------------


The NPE pops up:

java.lang.NullPointerException
	at com.sun.tools.javac.code.Scope.lookup(Scope.java:282)
	at com.sun.tools.javafx.comp.JavafxResolve.findField(JavafxResolve.java:464)
	at com.sun.tools.javafx.comp.JavafxResolve.findIdentInType(JavafxResolve.java:1229)
	at com.sun.tools.javafx.comp.JavafxAttr.selectSym(JavafxAttr.java:704)
	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)
Comment 1 Alexandr Scherbatiy 2008-09-05 10:47:20 UTC
Created attachment 69131 [details]
IDE log file
Comment 2 Lark Fitzgerald 2008-09-17 15:13:48 UTC
This error no longer occurs.  Now a completion list is provided.

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 09:36:47 UTC
verified in 2008-09-18_05-17-09.zip