diff --git a/doc/tips-and-tricks.md b/doc/tips-and-tricks.md index e4f391b..cb55b55 100644 --- a/doc/tips-and-tricks.md +++ b/doc/tips-and-tricks.md @@ -241,7 +241,8 @@ containing JSON: (let [type (.getType v) value (.getValue v)] (if (#{"jsonb" "json"} type) - (with-meta (<-json value) {:pgtype type}) + (when value + (with-meta (<-json value) {:pgtype type})) value))) ```