java.lang.RuntimeException: An error occurred while executing doInBackground()

GitHub | manrock007 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    revokeAccessToken causes a NPE with the following stack trace

    GitHub | 6 months ago | manrock007
    java.lang.RuntimeException: An error occurred while executing doInBackground()

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference

      at net.dean.jraw.http.HttpLogger.log()
    2. net.dean.jraw
      RedditClient.execute
      1. net.dean.jraw.http.HttpLogger.log(HttpLogger.java:261)
      2. net.dean.jraw.http.RestClient.execute(RestClient.java:123)
      3. net.dean.jraw.RedditClient.execute(RedditClient.java:143)
      4. net.dean.jraw.RedditClient.execute(RedditClient.java:137)
      4 frames
    3. com.dreamcast.redditr
      AndroidRedditClient.execute
      1. com.dreamcast.redditr.jraw.AndroidRedditClient.execute(AndroidRedditClient.java:82)
      1 frame
    4. net.dean.jraw
      OAuthHelper.revokeAccessToken
      1. net.dean.jraw.http.oauth.OAuthHelper.revokeToken(OAuthHelper.java:285)
      2. net.dean.jraw.http.oauth.OAuthHelper.revokeAccessToken(OAuthHelper.java:261)
      2 frames
    5. com.dreamcast.redditr
      RAccountManager$4.doInBackground
      1. com.dreamcast.redditr.models.RAccountManager$4.doInBackground(RAccountManager.java:207)
      2. com.dreamcast.redditr.models.RAccountManager$4.doInBackground(RAccountManager.java:203)
      2 frames
    6. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:295)
      1 frame
    7. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      1 frame
    8. Android Platform
      AsyncTask$SerialExecutor$1.run
      1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
      1 frame
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames