Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorAlena Laskavaia2008-06-11 09:36:40 -0400
committerAlena Laskavaia2008-06-11 09:36:40 -0400
commit8c309586cde08f1c2cd04cd4f8ba14cd84c9d906 (patch)
tree563781c3aa3190e1ffaea91047217c3c8bb417a2 /debug
parentbb5d5613ed4378cec35978256a91338fbf0b2ccb (diff)
downloadorg.eclipse.cdt-8c309586cde08f1c2cd04cd4f8ba14cd84c9d906.tar.gz
org.eclipse.cdt-8c309586cde08f1c2cd04cd4f8ba14cd84c9d906.tar.xz
org.eclipse.cdt-8c309586cde08f1c2cd04cd4f8ba14cd84c9d906.zip
[236214] - fixed potential NPE
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
index 1a684bf724..42ac41a5eb 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
@@ -1202,13 +1202,14 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
// ICDIFunctionBreakpoint on function elements from binary objects can be
// set without having a source handle. For this case of line breakpoint
// don't try to match breakpoints with source locator of contained CDebugTarget.
- String handle = "";
+ String handle = null;
try {
handle = breakpoint.getSourceHandle();
} catch (CoreException ex) {
// ignore exception. source handle will be empty anyway.
}
- result = handle.length() > 0;
+ result = (handle != null) && (handle.length() > 0);
+
}
}
return result;

Back to the top