java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator org.json.JSONObject.keys()' on a null object reference

GitHub | Jeff11 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NPE in ServerRequestGetRewards.onRequestSucceeded

    GitHub | 7 months ago | Jeff11
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator org.json.JSONObject.keys()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.util.Iterator org.json.JSONObject.keys()' on a null object reference

      at io.branch.referral.ServerRequestGetRewards.onRequestSucceeded()
    2. io.branch.referral
      Branch$BranchPostTask.onPostExecute
      1. io.branch.referral.ServerRequestGetRewards.onRequestSucceeded(ServerRequestGetRewards.java:46)
      2. io.branch.referral.Branch$BranchPostTask.onPostExecute(Branch.java:2472)
      3. io.branch.referral.Branch$BranchPostTask.onPostExecute(Branch.java:2320)
      3 frames
    3. Android Platform
      ActivityThread.main
      1. android.os.AsyncTask.finish(AsyncTask.java:651)
      2. android.os.AsyncTask.access$500(AsyncTask.java:180)
      3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:158)
      6. android.app.ActivityThread.main(ActivityThread.java:7229)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames