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 143041 - NPE when setting up a breakpoint
Summary: NPE when setting up a breakpoint
Status: VERIFIED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ deva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 13:28 UTC by Jan Chalupa
Modified: 2008-09-10 12:46 UTC (History)
0 users

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 Jan Chalupa 2008-08-06 13:28:03 UTC
Product Version: NetBeans IDE Dev (Build 200808050125)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Linux version 2.6.24-20-generic running on i386; UTF-8; en_US (nb)

I got the following NullPointerException when I tried to insert a breakpoint in a JavaScript file included in a PHP
project. I used the 'left-click in the editor gutter' to set the line breakpoint.


java.lang.NullPointerException
        at org.netbeans.modules.web.client.tools.common.dbgp.DbgpUtils.getDbgpBreakpointCommand(DbgpUtils.java:105)
        at
org.netbeans.modules.web.client.tools.javascript.debugger.spi.JSAbstractExternalDebugger.setBreakpoint(JSAbstractExternalDebugger.java:193)
        at org.netbeans.modules.web.client.javascript.debugger.api.NbJSDebugger$1.run(NbJSDebugger.java:505)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 _ deva 2008-08-08 23:25:50 UTC
I am not able to reproduce with the following steps
1) Create a new PHP project
2) Add some javascript source
3) Try to set breakpoints

Could you please provide more information about the steps. 

From the stack trace it is possible to fix NPE, but that will not exactly address the root cause
Comment 2 Jan Chalupa 2008-09-10 12:46:43 UTC
I'm no longer able to reproduce it either.