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 146294 - Code completion throws NPE: visitBinary
Summary: Code completion throws NPE: visitBinary
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:33 UTC by Alexandr Scherbatiy
Modified: 2008-09-18 09:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (90.01 KB, text/plain)
2008-09-05 10:34 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:33:20 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 a = 10 + 
  --------------------------------
- Type 'Space'

The NPE pops up:

java.lang.NullPointerException
	at com.sun.tools.javafx.comp.JavafxAttr.visitBinary(JavafxAttr.java:2269)
	at com.sun.tools.javafx.tree.JFXBinary.accept(JFXBinary.java:53)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:266)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:292)
	at com.sun.tools.javafx.comp.JavafxAttr.finishVar(JavafxAttr.java:868)
	at com.sun.tools.javafx.comp.JavafxMemberEnter$SymbolCompleter.complete(JavafxMemberEnter.java:611)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:400)
	at com.sun.tools.javafx.comp.JavafxAttr.visitVar(JavafxAttr.java:928)
	at com.sun.tools.javafx.tree.JFXVar.accept(JFXVar.java:83)
	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.visitVarScriptInit(JavafxAttr.java:917)
	at com.sun.tools.javafx.tree.JFXVarScriptInit.accept(JFXVarScriptInit.java:67)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:266)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:302)
Comment 1 Alexandr Scherbatiy 2008-09-05 10:34:24 UTC
Created attachment 69130 [details]
IDE log file
Comment 2 Lark Fitzgerald 2008-09-17 14:58:45 UTC
No longer reproducible.  The editor now shows a red ! with: 
operator + cannot be applied to int, <any>

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