Skip to content

Commit

Permalink
Check for nil before wrapping a message handler [fixes #56]
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias committed Oct 21, 2013
1 parent 47c187c commit d7b50e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/clojure/vertx/eventbus.clj
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
(defn ^:private message-handler
"Wraps a fn in a Handler, binding *current-message*"
[handler]
(if (core/handler? handler)
(if (or (nil? handler) (core/handler? handler))
handler
(core/as-handler
(fn [m]
Expand Down

0 comments on commit d7b50e0

Please sign in to comment.