Skip to content

Commit

Permalink
Fix NPE if a frame's file path is nil (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeclarke authored and martinklepsch committed Sep 6, 2016
1 parent 08b7670 commit c86abb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/raven_clj/interfaces.clj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
(alter-fn (make-http-info req))))

(defn file->source [file-path line-number]
(some-> (io/resource file-path)
(some-> file-path
(io/resource)
slurp
(string/split #"\n")
(#(drop (- line-number 6) %))
Expand Down

0 comments on commit c86abb8

Please sign in to comment.