java.lang.RuntimeException

An error occured while executing doInBackground(

Solutions on the web18685

  • via Coderanch by Gabriela Cristian, 6 months ago
    An error occured while executing doInBackground()
  • via Coderanch by himani mittal, 6 months ago
    An error occured while executing doInBackground()
  • via Coderanch by maulidan abdillah, 6 months ago
    An error occured while executing doInBackground()
  • Stack trace

    • java.lang.RuntimeException: An error occured while executing doInBackground( at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NullPointerException at com.example.android.quakereport.QueryUtils.extractFeatureFromJson(QueryUtils.java:82) at com.example.android.quakereport.QueryUtils.fetchEarthquakeData(QueryUtils.java:55) at com.example.android.quakereport.EarthquakeActivity$MYAsyncTask.doInBackground(EarthquakeActivity.java:55) at com.example.android.quakereport.EarthquakeActivity$MYAsyncTask.doInBackground(EarthquakeActivity.java:46) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.