-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
JSONObject(Map): Throws NPE if key is null
A bit late here, but I would consider throwing an exception for an input that used to be accepted a breaking API change. In my company's codebase we had some tests that verified this behavior that were broken as a result, and a currently unknown amount of code that could actually be depending on this behavior.
Obviously this ship has already sailed (and rejecting null keys makes much more sense), but can we at least point out the breaking change in the release history documentation? Would be very useful as a heads-up for anyone trying to upgrade from an old version.
Originally posted by @data-enabler in #405 (comment)