summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Pierro2012-10-02 23:54:53 (EDT)
committer Pawel Piech2012-10-03 00:00:48 (EDT)
commit5e4cd0c1a95f9a98692cefb6ee7c051356def84d (patch)
treeae2adb304a052563fab11f849a88eb251a40bae0
parentdfd77d4cb35ff50348dfc605b0beb00ad96c85ca (diff)
downloadorg.eclipse.cdt-5e4cd0c1a95f9a98692cefb6ee7c051356def84d.zip
org.eclipse.cdt-5e4cd0c1a95f9a98692cefb6ee7c051356def84d.tar.gz
org.eclipse.cdt-5e4cd0c1a95f9a98692cefb6ee7c051356def84d.tar.bz2
Bug 390979 - NullPointerException in BreakpointsMediator2.getPlatformBreakpoint()
-rw-r--r--dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/BreakpointsMediator2.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/BreakpointsMediator2.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/BreakpointsMediator2.java
index 035a419..7d2e4ed 100644
--- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/BreakpointsMediator2.java
+++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/BreakpointsMediator2.java
@@ -483,9 +483,11 @@ public class BreakpointsMediator2 extends AbstractDsfService implements IBreakpo
for(Map.Entry<IBreakpoint, List<ITargetBreakpointInfo>> e: platformBPs.entrySet())
{
// Stop at the first occurrence
- for (ITargetBreakpointInfo tbp : e.getValue())
- if(tbp.getTargetBreakpoint().equals(bp))
+ for (ITargetBreakpointInfo tbp : e.getValue()) {
+ IBreakpointDMContext targetBreakpoint = tbp.getTargetBreakpoint();
+ if(targetBreakpoint != null && targetBreakpoint.equals(bp))
return e.getKey();
+ }
}
}
}