cemerick / friend

An extensible authentication and authorization library for Clojure Ring web applications and services.
1.16k stars 122 forks source link

Omitting schema when calling wrapped handler results in NullPointerException #152

Closed danielbraun closed 4 years ago

danielbraun commented 7 years ago

Problem is here: https://github.com/cemerick/friend/blob/master/src/cemerick/friend/util.clj#L19

name function is called on a nil argument, in case schema is not given. (this can happen when calling the handler programmatically, in the REPL)

Should either make a default value for schema, or add a precondition validation the parameter. What do you think?