Skip to content

Commit 37bf201

Browse files
committed
sanity check for the given breakpoint
1 parent 34c7c2e commit 37bf201

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/org/rubyforge/debugcommons/RubyDebuggerProxy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public synchronized void addBreakpoint(final IRubyBreakpoint breakpoint) {
176176
LOGGER.fine("Session and/or debuggee has already finished, skipping addition of breakpoint: " + breakpoint);
177177
return;
178178
}
179+
assert breakpoint != null : "breakpoint cannot be null";
179180
if (breakpoint.isEnabled()) {
180181
try {
181182
if (breakpoint instanceof IRubyLineBreakpoint) {

0 commit comments

Comments
 (0)