clj-commons / gloss

speaks in bytes, so you don't have to
Eclipse Public License 1.0
483 stars 57 forks source link

repeated bug #26

Open KaterMikesch opened 11 years ago

KaterMikesch commented 11 years ago

(encode (repeated (string :utf8) :prefix :byte) nil)

throws an exception. This might be wrong because nil might be a valid value for repeated encoding because zero elements to encode should be valid.

Line 128 in codecs might be the culprit. Maybe it could be handled more gracefully earlier.