FasterXML / jackson-annotations

Core annotations (annotations that only depend on jackson-core) for Jackson data processor
https://github.com/FasterXML/jackson
Apache License 2.0
1.03k stars 330 forks source link

Improve `ObjectIdGenerators.key()` to handle `null` appropriately by returning null #56

Closed cowtowncoder closed 9 years ago

cowtowncoder commented 9 years ago

Currently calling ObjectIdGenerators.key(Object) with null key throws an NPE. Instead it should return null. Callers should not necessarily call this method with null, but in case they do, it should not fail.