Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347255 - [disassembly] NPE in BreakpointsAnnotationModel
Summary: [disassembly] NPE in BreakpointsAnnotationModel
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 7.0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Pawel Piech CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 02:47 EDT by Anton Leherbauer CLA
Modified: 2011-05-26 04:23 EDT (History)
1 user (show)

See Also:


Attachments
Protect against NPE (966 bytes, patch)
2011-05-26 04:15 EDT, Anton Leherbauer CLA
aleherb+eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Leherbauer CLA 2011-05-26 02:47:23 EDT
This exception happened while terminating a debug session.  There seems to be a race condition between model disconnect and breakpoint change notifications.

java.lang.NullPointerException
at org.eclipse.cdt.dsf.debug.internal.ui.disassembly.model.BreakpointsAnnotationModel.createPositionFromAddress(BreakpointsAnnotationModel.java:233)
at org.eclipse.cdt.dsf.debug.internal.ui.disassembly.model.BreakpointsAnnotationModel.createPositionFromBreakpoint(BreakpointsAnnotationModel.java:192)
at org.eclipse.cdt.dsf.debug.internal.ui.disassembly.model.BreakpointsAnnotationModel.addBreakpointAnnotation(BreakpointsAnnotationModel.java:141)
at org.eclipse.cdt.dsf.debug.internal.ui.disassembly.model.BreakpointsAnnotationModel.breakpointChanged(BreakpointsAnnotationModel.java:110)
at org.eclipse.debug.internal.core.BreakpointManager$BreakpointNotifier.run(BreakpointManager.java:926)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.internal.core.BreakpointManager$BreakpointNotifier.notify(BreakpointManager.java:946)
at org.eclipse.debug.internal.core.BreakpointManager.fireUpdate(BreakpointManager.java:860)
at org.eclipse.debug.internal.core.BreakpointManager.access$3(BreakpointManager.java:850)
at org.eclipse.debug.internal.core.BreakpointManager$BreakpointManagerVisitor.update(BreakpointManager.java:719)
at org.eclipse.debug.internal.core.BreakpointManager.resourceChanged(BreakpointManager.java:655)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:311)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:147)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Anton Leherbauer CLA 2011-05-26 04:15:44 EDT
Created attachment 196637 [details]
Protect against NPE
Comment 2 Anton Leherbauer CLA 2011-05-26 04:18:36 EDT
Committed to HEAD.
Comment 3 CDT Genie CLA 2011-05-26 04:23:08 EDT
*** cdt cvs genie on behalf of aleherbau ***
Bug 347255 - [disassembly] NPE in BreakpointsAnnotationModel

[*] BreakpointsAnnotationModel.java 1.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/BreakpointsAnnotationModel.java?root=Tools_Project&r1=1.7&r2=1.8