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 149491 - Typing 'new' throws NPE JavaFXTreePath.<init>
Summary: Typing 'new' throws NPE JavaFXTreePath.<init>
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-08 12:12 UTC by Alexandr Scherbatiy
Modified: 2008-10-13 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (41.35 KB, text/plain)
2008-10-08 12:13 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-10-08 12:12:27 UTC
JavaFX_NB_Plugin_NB65_daily: #291
  Product Version         = NetBeans IDE Dev (Build 200809151401)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc.

Steps to reproduce:

- Create a JavaFX Script file
- Type 'new'

NPE pops up: 

java.lang.NullPointerException
	at com.sun.javafx.api.tree.JavaFXTreePath.<init>(JavaFXTreePath.java:87)
	at org.netbeans.api.javafx.source.CompilationInfo.getTopLevelElements(CompilationInfo.java:261)
	at org.netbeans.modules.javafx.navigation.ElementScanningTask.run(ElementScanningTask.java:98)
	at org.netbeans.modules.javafx.navigation.ElementScanningTask.run(ElementScanningTask.java:76)
	at org.netbeans.modules.javafx.source.scheduler.CompilationJob.run(CompilationJob.java:199)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
[catch] at java.lang.Thread.run(Thread.java:595)
Comment 1 Alexandr Scherbatiy 2008-10-08 12:13:56 UTC
Created attachment 71358 [details]
IDE log file
Comment 2 Anton Chechel 2008-10-08 13:34:23 UTC
this is compiler issue: created http://openjfx.java.sun.com/jira/browse/JFXC-2153
Comment 3 Anton Chechel 2008-10-13 13:07:17 UTC
fixed
Comment 4 Lark Fitzgerald 2008-10-13 15:50:09 UTC
Tested using FX Cont trunk build 348 with SDK:
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 708, Build-ID: 2008-10-13_03-09-52 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 200810060201)
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)


I now see a different issue logged as:
http://www.netbeans.org/issues/show_bug.cgi?id=149962