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 146363 - NPE typing var in class
Summary: NPE typing var in class
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 146952
  Show dependency tree
 
Reported: 2008-09-05 19:31 UTC by Lark Fitzgerald
Modified: 2008-09-18 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception text (4.06 KB, text/plain)
2008-09-05 19:32 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-09-05 19:31:23 UTC
Tested using FX Cont trunk build 103 on NB6.5:
Product Version: NetBeans IDE Dev (Build 200809051401)
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)

1. create/open project
2. right click package and create new > javafx class
3. position cursor inside class declaration and type:
var

NPE is thrown:
java.lang.NullPointerException
	at org.netbeans.modules.javafx.editor.semantic.Utilities.findIdentifierSpanImpl(Utilities.java:231)
	at org.netbeans.modules.javafx.editor.semantic.Utilities.access$000(Utilities.java:77)

Full exception text is attached
Comment 1 Lark Fitzgerald 2008-09-05 19:32:40 UTC
Created attachment 69189 [details]
exception text
Comment 2 Lark Fitzgerald 2008-09-17 15:30:16 UTC
No longer reproducible:
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:59:55 UTC
verified in 2008-09-18_05-17-09.zip