- changed status to wontfix
use org.json.JSONObject.isNull(String key)
Issue #31
wontfix
eg: replace if (pageURL == null) in IssuesActivity with if (issues.isNull(next_page_url))
Comments (1)
-
reporter - Log in to comment
JSONObject,getString() coerces sentinel NULL to string "null" so String.isEqual("null") works fine, why bother checking if it's null, to decide whether to use JSONObject.getString() or .get(), etc. why handle more cases, if all can be handled ass one case.