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 178791 - NullPointerException at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionEnvironment.addLocalMembersAndVars
Summary: NullPointerException at org.netbeans.modules.javafx.editor.completion.JavaFXC...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 07:50 UTC by Alexandr Scherbatiy
Modified: 2010-02-11 04:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 163718


Attachments
stacktrace (1.88 KB, text/plain)
2009-12-17 07:50 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-12-17 07:50:49 UTC
Build: NetBeans IDE Dev (Build javafx-main-123-on-091217)
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: Steps to reproduce:
- Copy the code to the editor:
----------------------------------------------------------------------------------------------------------------
public function fractalView(depth: Number, fractal: Fractal): Node {
    var angle = Math.toRadians(fractal.angle);
    if (depth == 1) Line {
        } else Group {
                content: for(fractal.childs) fractalView(de)
        }

}
----------------------------------------------------------------------------------------------------------------

- Position cursor after line:
  ' content: for(fractal.childs) fractalView(de'
- Press <Ctrl+Space>

The exception pops up



Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionEnvironment.addLocalMembersAndVars(JavaFXCompletionEnvironment.java:511)
   at org.netbeans.modules.javafx.editor.completion.environment.MethodInvocationTreeEnvironment.inside(MethodInvocationTreeEnvironment.java:85)
   at org.netbeans.modules.javafx.editor.completion.environment.MethodInvocationTreeEnvironment.inside(MethodInvocationTreeEnvironment.java:57)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionQuery.resolveCompletion(JavaFXCompletionQuery.java:397)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionQuery.run(JavaFXCompletionQuery.java:344)
   at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionQuery.run(JavaFXCompletionQuery.java:77)
Comment 1 Alexandr Scherbatiy 2009-12-17 07:50:53 UTC
Created attachment 92714 [details]
stacktrace
Comment 2 Petr Nejedly 2010-02-10 06:55:07 UTC
Fixed:
http://hg.netbeans.org/javafx/rev/6e7308c39b20
Comment 3 Alexandr Scherbatiy 2010-02-11 04:34:11 UTC
verified in NetBeans-JavaFX-Soma: #149