Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2014-10-09 12:05:23 +0000
committerDani Megert2014-10-09 12:05:23 +0000
commit564d3bfae3140780ca5879d4cbbe3601cf6916d2 (patch)
treec359faa471cc7cb728a130b2d22092d82864cd2b /org.eclipse.debug.core
parent8a1df72b32d13765ec6e719f211a79d27a86667c (diff)
downloadeclipse.platform.debug-564d3bfae3140780ca5879d4cbbe3601cf6916d2.tar.gz
eclipse.platform.debug-564d3bfae3140780ca5879d4cbbe3601cf6916d2.tar.xz
eclipse.platform.debug-564d3bfae3140780ca5879d4cbbe3601cf6916d2.zip
Fixed potential NPE.
Diffstat (limited to 'org.eclipse.debug.core')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
index 01e69a787..b6cebf1be 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
@@ -879,7 +879,7 @@ public class BreakpointManager implements IBreakpointManager, IResourceChangeLis
for (int i = 0; i < breakpoints.size(); i++) {
IBreakpoint breakpoint = breakpoints.get(i);
IMarker bpMarker = breakpoint.getMarker();
- if (bpMarker != null && marker.getResource().equals(bpMarker.getResource()) && (Integer) bpMarker.getAttribute(IMarker.LINE_NUMBER) == (line == null ? -1 : line.intValue())) {
+ if (bpMarker != null && marker.getResource().equals(bpMarker.getResource()) && bpMarker.getAttribute(IMarker.LINE_NUMBER, -1) == (line == null ? -1 : line.intValue())) {
return breakpoint;
}
}

Back to the top