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 179499 - Code Completion throws NullPointerException at com.sun.tools.mjavac.code.Symbol$TypeSymbol.getEnclosedElements
Summary: Code Completion throws NullPointerException at com.sun.tools.mjavac.code.Symb...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-14 06:28 UTC by Alexandr Scherbatiy
Modified: 2010-02-03 03:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 164316


Attachments
stacktrace (2.09 KB, text/plain)
2010-01-14 06:28 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-01-14 06:28:53 UTC
Build: NetBeans IDE Dev (Build 201001131418)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments:
sunflower: Type FileMa in the JavaFX code



Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.mjavac.code.Symbol$TypeSymbol.getEnclosedElements(Symbol.java:555)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionEnvironment.addLocalAndImportedTypes(JavaFXCompletionEnvironment.java:1369)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionEnvironment.addLocalAndImportedTypes(JavaFXCompletionEnvironment.java:1318)
   at org.netbeans.modules.javafx.editor.completion.environment.CompilationUnitEnvironment.inside(CompilationUnitEnvironment.java:95)
   at org.netbeans.modules.javafx.editor.completion.environment.CompilationUnitEnvironment.inside(CompilationUnitEnvironment.java:68)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionQuery.resolveCompletion(JavaFXCompletionQuery.java:397)
Comment 1 Alexandr Scherbatiy 2010-01-14 06:28:57 UTC
Created attachment 93286 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-01-14 06:33:38 UTC
Steps to reproduce:

- Open the attached project
http://netbeans.org/bugzilla/attachment.cgi?id=93285

- Go to the generator.ProjectGenerator file
- Type FileM before the 'for(i in [0..N-1]){' line
- Press <Ctrl+Space>

The exception pops up
Comment 3 J Bachorik 2010-01-19 06:01:15 UTC
related to #179490
fixed in http://hg.netbeans.org/javafx/rev/6b71f5af4690
Comment 4 Alexandr Scherbatiy 2010-02-03 03:32:12 UTC
verified in NetBeans-JavaFX-Soma: #141