When we check for the lambda arguments, we only allow null in isCompatibleArgument checking.
From JSONObject doc, if we want to assign null value to a JSON we can only use JSONObject.NULL. We should allow JSONObject.NULL in the checking
Warning: this class represents null in two incompatible ways: the standard Java null reference, and the sentinel value NULL. In particular, calling put(name, null) removes the named entry from the object but put(name, JSONObject.NULL) stores an entry whose value is JSONObject.NULL.
When we check for the lambda arguments, we only allow
null
inisCompatibleArgument
checking. FromJSONObject
doc, if we want to assignnull
value to a JSON we can only useJSONObject.NULL
. We should allowJSONObject.NULL
in the checkinghttps://developer.android.com/reference/org/json/JSONObject.html