use org.json.JSONObject.isNull(String key)

Issue #31 wontfix
Mark Mikofski repo owner created an issue

eg: replace if (pageURL == null) in IssuesActivity with if (issues.isNull(next_page_url))

Comments (1)

  1. Mark Mikofski reporter

    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.

  2. Log in to comment