An error occurred while executing doInBackground()

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web574

  • Stack trace

    • java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done( at java.util.concurrent.FutureTask.finishCompletion( at java.util.concurrent.FutureTask.setException( at at android.os.AsyncTask$SerialExecutor$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at Caused by: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1 at java.util.ArrayList.get( at com.prashant.ProductsListFragment.parseJSONData( at com.prashant.ProductsListFragment$getDataTask.doInBackground( at com.prashant.ProductsListFragment$getDataTask.doInBackground( at android.os.AsyncTask$ at ... 4 more

    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

    3 times, last one
    Indri YunitaIndri Yunita
    6 times, last one
    2 times, last one
    2 times, last one
    40 times, last one
    39 more bugmates