Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311122 - [breakpoints] NPE in AbstractBreakpointVMNode.
Summary: [breakpoints] NPE in AbstractBreakpointVMNode.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Pawel Piech CLA
QA Contact: Pawel Piech CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 18:37 EDT by Pawel Piech CLA
Modified: 2010-07-28 15:24 EDT (History)
3 users (show)

See Also:
aleherb+eclipse: review+


Attachments
Fix. (1.69 KB, patch)
2010-04-29 18:37 EDT, Pawel Piech CLA
pawel.1.piech: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Piech CLA 2010-04-29 18:37:56 EDT
Created attachment 166580 [details]
Fix.

I got the following NPE with DSF-GDB when I had filter breakpoints option turned on.

Caused by: java.lang.NullPointerException
at org.eclipse.cdt.dsf.debug.ui.viewmodel.breakpoints.AbstractBreakpointVMNode$2.handleCompleted(AbstractBreakpointVMNode.java:86)
at org.eclipse.cdt.dsf.concurrent.RequestMonitor$2.run(RequestMonitor.java:291)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
... 23 more

Attached patch fixes the NPE.
Comment 1 Pawel Piech CLA 2010-04-29 18:39:52 EDT
Fix committed.  Toni please review.  Navid since you're familiar with this code if you can please have a look also.
Comment 2 Navid Mehregani CLA 2010-04-30 10:44:34 EDT
Patch looks good to me.
Comment 3 CDT Genie CLA 2010-07-28 15:24:38 EDT
*** cdt cvs genie on behalf of ppiech ***
Bug 311122 -  [breakpoints] NPE in AbstractBreakpointVMNode.

[*] BreakpointVMProvider.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/breakpoints/BreakpointVMProvider.java?root=Tools_Project&r1=1.2&r2=1.3