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 188477

Summary: NullPointerException at org.netbeans.modules.javafx.debugger.models.ScriptClass.getType
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: DebuggerAssignee: Michal Skvor <misk>
Status: VERIFIED FIXED    
Severity: normal CC: sunflower
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 171253
Bug Depends on:    
Bug Blocks: 173187    
Attachments: stacktrace
stacktrace

Description Alexandr Scherbatiy 2010-07-08 09:08:04 UTC
Build: NetBeans IDE Dev (Build 201007080001)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

User Comments:
sunflower: JavaFX Composer FXJDI Build #49 (Jul 8, 2010 7:48:33 AM)
Steps to reproduce:
- copy the code to the editor:
--------------------------------
function f() {
    println("A");
}

f();
--------------------------------

- Set a breakpoint to the last line
- Debug the project
- Press F7 (Step Into)
- Press Ctrl+F7 (Step Out)
- Press Ctrl+F7 (Step Out) again
The InvocationEvent java class opens.
The exception pops up.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javafx.debugger.models.ScriptClass.getType(ScriptClass.java:37)
   at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getFilter(VariablesTreeModelFilter.java:548)
   at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getDisplayName(VariablesTreeModelFilter.java:336)
   at org.netbeans.spi.viewmodel.Models$CompoundNodeModel.getDisplayName(Models.java:945)
   at org.netbeans.modules.debugger.jpda.models.LabelVarsFilter.getDisplayName(LabelVarsFilter.java:179)
   at org.netbeans.spi.viewmodel.Models$CompoundNodeModel.getDisplayName(Models.java:945)
Comment 1 Alexandr Scherbatiy 2010-07-08 09:08:08 UTC
Created attachment 100685 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-07-08 13:44:40 UTC
Created attachment 100696 [details]
stacktrace
Comment 3 Michal Skvor 2010-07-12 13:05:33 UTC
Fixed.
Comment 4 Andrei Chistiakov 2010-07-13 14:09:49 UTC
Verified with NetBeans IDE 6.9.1 Dev (Build 201007112301)