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 134098 - NPE at org.netbeans.modules.web.client.javascript.debugger.firefox.DbgpUtils.getDbgpBreakpointCommand
Summary: NPE at org.netbeans.modules.web.client.javascript.debugger.firefox.DbgpUtils....
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 19:08 UTC by _ krystyna
Modified: 2008-04-30 00:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2008-04-28 19:08:49 UTC
Netbeans 6.1 FCS + 4/28 update center
Solaris 

--Firebug and nb extension removed from Firefox; clean installation and userdir
--Got this NPE below between first and second launch of debugger. I think I had a faulty installation
  because second debug launched installation message (for the second time) and installed Firebug. No
  indication that the first installation was incomplete.
  
  Will try to reproduce now.

java.lang.NullPointerException
        at
org.netbeans.modules.web.client.javascript.debugger.firefox.DbgpUtils.getDbgpBreakpointCommand(DbgpUtils.java:123)
        at org.netbeans.modules.web.client.javascript.debugger.firefox.FFJSDebugger.setBreakpoint(FFJSDebugger.java:215)
        at org.netbeans.modules.web.client.javascript.debugger.api.NbJSDebugger.setBreakpoint(NbJSDebugger.java:411)
        at org.netbeans.modules.web.client.javascript.debugger.api.NbJSDebugger.access$100(NbJSDebugger.java:105)
        at
org.netbeans.modules.web.client.javascript.debugger.api.NbJSDebugger$DebuggerManagerListenerImpl.breakpointAdded(NbJSDebugger.java:154)
Caused: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:449)
Caused: java.lang.reflect.UndeclaredThrowableException
        at $Proxy7.breakpointAdded(Unknown Source)
        at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:755)
        at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:519)
        at
org.netbeans.modules.web.client.javascript.debugger.ui.breakpoints.NbJSBreakpointManager.addBreakpoint(NbJSBreakpointManager.java:124)
        at
org.netbeans.modules.web.client.javascript.debugger.ui.breakpoints.NbJSBreakpointActionProvider.doAction(NbJSBreakpointActionProvider.java:82)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:105)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 _ sandipchitale 2008-04-28 19:31:02 UTC
After Krys is able to reproduce the issue, Deva, can you please have a look at this?
Comment 2 _ sandipchitale 2008-04-28 20:03:18 UTC
Actually it turns out to be a problem that Firebug did not get installed correctly. The solution is that after the user
presses the OK button we should run the check for the required extensions one more time.

Deva should still protect for NPE.
Comment 3 Quy Nguyen 2008-04-30 00:37:51 UTC
There is now an additional check after the initial installation is launched.  When the user clicks 'OK', the extension
installs are validated, and if they are still not present, the extension installations are launched again with a similar
dialog message.

This should ensure that the add-ons are eventually installed correctly by the user.


Changesets: f022edeff337, d96684da982c