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 176911 - NullPointerException at org.netbeans.modules.javafx.debugger.Context.getCurrentLineNumber
Summary: NullPointerException at org.netbeans.modules.javafx.debugger.Context.getCurre...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Michal Skvor
URL:
Keywords: REGRESSION
Depends on: 177063
Blocks:
  Show dependency tree
 
Reported: 2009-11-16 07:36 UTC by Alexandr Scherbatiy
Modified: 2009-11-20 05:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 162197


Attachments
stacktrace (609 bytes, text/plain)
2009-11-16 07:36 UTC, Alexandr Scherbatiy
Details
stacktrace (609 bytes, text/plain)
2009-11-17 05:10 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-11-16 07:36:52 UTC
Build: NetBeans IDE Dev (Build 200911160201)
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:
ca-nb: - tried to set a breakpoint in Java FX source by clicking on the field with line numbers in source editor



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.javafx.debugger.Context.getCurrentLineNumber(Context.java:80)
        at org.netbeans.modules.javafx.debugger.actions.JavaFXToggleActionProvider.doAction(JavaFXToggleActionProvider.java:52)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:112)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
Comment 1 Alexandr Scherbatiy 2009-11-16 07:36:55 UTC
Created attachment 91097 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2009-11-16 07:39:22 UTC
Build 200911160201
NetBeans Full bundle.
Windows XP version 5.1

- Install NetBeans
- Create a JavaFX Script project
- Set a breakpoint to the main file

The exception pops up.
Comment 3 Alexandr Scherbatiy 2009-11-17 05:10:53 UTC
Created attachment 91165 [details]
stacktrace
Comment 4 Petr Suchomel 2009-11-18 02:02:52 UTC
Isn't this also ergonomics, Alexander?
Comment 5 Alexandr Scherbatiy 2009-11-18 02:21:18 UTC
Probably yes. Because after activating the Java module the issue is not reproduced.
Comment 6 Petr Nejedly 2009-11-18 08:40:58 UTC
No, not ergonomics. It is caused by javafx debugger module missing some dependency on something. It is not java.editor, but I'm not sure what module is it yet.
Comment 7 Petr Nejedly 2009-11-18 09:15:44 UTC
There was missing dependency on org.netbeans.modules.debugger.jpda.projects, which provides EditorContext.
http://hg.netbeans.org/javafx/rev/0776a3653334
Comment 8 Alexandr Scherbatiy 2009-11-20 05:01:28 UTC
verified in Build 200911200201