Skip to content

Commit

Permalink
[Fix #1360] Don't try to create button from a nil message
Browse files Browse the repository at this point in the history
  • Loading branch information
Malabarba committed Oct 6, 2015
1 parent 85ceb28 commit 761ea8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cider-stacktrace.el
Original file line number Diff line number Diff line change
Expand Up @@ -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) "\\/")))))
Expand Down

0 comments on commit 761ea8d

Please sign in to comment.