Permalink
Browse files

Fix bug in calculate-restarts triggered by exceptions with no message

  • Loading branch information...
1 parent 75fa5fa commit ea40515529018d9931cf66f25ebeee14550f1435 @hugoduncan hugoduncan committed Apr 15, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/swank/core.clj
View
3 src/swank/core.clj
@@ -168,7 +168,8 @@ values."
:abort "ABORT" (str "ABORT to SLIME level " (dec *sldb-level*))
(fn [] (throw *debug-abort-exception*)))
restarts (add-restart-if
- (.contains (.getMessage thrown) "BREAK")
+ (and (.getMessage thrown)
+ (.contains (.getMessage thrown) "BREAK"))
restarts
:continue "CONTINUE" (str "Continue from breakpoint")
(fn [] (throw *debug-continue-exception*)))

0 comments on commit ea40515

Please sign in to comment.