From 761ea8df5bae33133890bf085338647d11261029 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Tue, 6 Oct 2015 15:14:21 +0100 Subject: [PATCH] [Fix #1360] Don't try to create button from a nil message --- cider-stacktrace.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cider-stacktrace.el b/cider-stacktrace.el index 7e74a530e..b5f1b05bc 100644 --- a/cider-stacktrace.el +++ b/cider-stacktrace.el @@ -509,7 +509,8 @@ This associates text properties to enable filtering and source navigation." Buttons span over the region from BEG to current point. MESSAGE is parsed to find line, col and buffer name to jump to." - (when (string-match "\\([^:]+\\):\\([^:]+\\):\\([^:]+\\):\\([^:]+\\)\\'" message) + (when (and message + (string-match "\\([^:]+\\):\\([^:]+\\):\\([^:]+\\):\\([^:]+\\)\\'" message)) (let* ((line (string-to-number (match-string 3 message))) (col (string-to-number (match-string 4 message))) (buf-name (car (last (split-string (match-string 2 message) "\\/")))))