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.
Build: NetBeans IDE Dev (Build EaselCSS-463-on-20120809) VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b22 OS: Windows 7 User Comments: jskrivanek: Run html file in embedded browser - no breakpoint set. johnjullion: running any file in internal or external browser Stacktrace: java.lang.NullPointerException at org.netbeans.modules.web.javascript.debugger.browser.NetBeansJavaScriptDebuggerFactoryImpl.createDebuggingSession(NetBeansJavaScriptDebuggerFactoryImpl.java:64) at org.netbeans.core.browser.webview.HtmlBrowserImpl$1.run(HtmlBrowserImpl.java:143) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Created attachment 122904 [details] stacktrace
Created attachment 122915 [details] stacktrace running html file (with some breakpoints) in JavaFX browser
Created attachment 122927 [details] stacktrace
Created attachment 122974 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=191402
Created attachment 123026 [details] stacktrace Run html file in embedded browser.
Created attachment 123035 [details] stacktrace 1. Run HTML file (in Client Side Project) with JavaFX Embedded Browser configuration. 2. Close the resulting Web Browser window. 3. Run the file again => NPE is thrown.
Created attachment 123039 [details] stacktrace 1. Running HTML project in the embedded browser 2. Closing the embedded browser window 3. Runing the project again
Martin, I guess this should be fixed by you?
> Martin, I guess this should be fixed by you? The NPE is just a consequence of project context not being correctly initialized in HtmlBrowserImpl. This initialization is what must be fixed and this is David's area.
Ok, understood.
8140cf795b4c
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=191402
I can reproduce this issue by opening the default embedded browser using menu 'View - Web browser'. The debugger is trying to initialize even though it isn't a 'developer' browser window.
(In reply to comment #14) > I can reproduce this issue by opening the default embedded browser using menu > 'View - Web browser'. The debugger is trying to initialize even though it isn't > a 'developer' browser window. Fixed in web-main 9b86ecf460cd
*** Bug 217219 has been marked as a duplicate of this bug. ***
Thanks Standa. I applied the same fix also for external browser. 45d4bb5c4944 The "View" action should be removed from HTML dataobject in HTML5Project. I'm not sure how easy that it is to do - filed as issue 217253.
Integrated into 'main-golden', will be available in build *201209031048* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/8140cf795b4c User: David Konecny <dkonecny@netbeans.org> Log: #216576 - NullPointerException at org.netbeans.modules.web.javascript.debugger.browser.NetBeansJavaScriptDebuggerFactoryImpl.createDebuggingSession