Actually, any NPE are already being caught by the try/except block in
`valid-latlon?`. Maybe it's best to leave this with standard Java
behavior, and let special use cases (like `valid-latlon?`) handle any
weirdness themselves.





On Tue, Apr 16, 2013, at 11:50 AM, Robin Kraft wrote:

Maybe just use `nil?`? What's the appropriate behavior in that case?





On Tue, Apr 16, 2013, at 11:48 AM, Aaron Steele wrote:

  In src/clj/teratorn/common.clj:
> @@ -81,6 +81,17 @@
>    [& x]
>    (str (java.util.UUID/randomUUID)))
>
> +(defn parse-double

  yup lets add an issue for getting tests over. should we wrap this
  function with try/catch to handle nils?

  —

Reply to this email directly or [1]view it on GitHub.
[RkOat9Y1_FdXL0zywX1whj2v435D0bbmCpGeJpQkHFdIOP5tqj6-wLui2I_XuyR3.gif]

References

1. https://github.com/MapofLife/teratorn/pull/2/files#r3818414