Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorAnton Leherbauer2011-05-26 04:18:26 -0400
committerAnton Leherbauer2011-05-26 04:18:26 -0400
commitb8859f5dd6fdbec12aef4baafd9d7e87b20beb98 (patch)
treedc2ec590450ea115f4635c17222170af3458a18d /dsf
parent5e00cb748e3e28b01f20b3c62645a57fc6356691 (diff)
downloadorg.eclipse.cdt-b8859f5dd6fdbec12aef4baafd9d7e87b20beb98.tar.gz
org.eclipse.cdt-b8859f5dd6fdbec12aef4baafd9d7e87b20beb98.tar.xz
org.eclipse.cdt-b8859f5dd6fdbec12aef4baafd9d7e87b20beb98.zip
Bug 347255 - [disassembly] NPE in BreakpointsAnnotationModel
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/BreakpointsAnnotationModel.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/BreakpointsAnnotationModel.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/BreakpointsAnnotationModel.java
index 6e5067b95c..c44b418b7c 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/BreakpointsAnnotationModel.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/BreakpointsAnnotationModel.java
@@ -133,6 +133,9 @@ public class BreakpointsAnnotationModel extends AnnotationModel implements IBrea
}
private void addBreakpointAnnotation(IBreakpoint breakpoint, boolean fireEvent) {
+ if (fDocument == null) {
+ return;
+ }
final IMarker marker= breakpoint.getMarker();
if (marker == null) {
return;

Back to the top