java.lang.RuntimeException

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(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1 at java.util.ArrayList.get(ArrayList.java:310) at com.prashant.ProductsListFragment.parseJSONData(ProductsListFragment.java:250) at com.prashant.ProductsListFragment$getDataTask.doInBackground(ProductsListFragment.java:185) at com.prashant.ProductsListFragment$getDataTask.doInBackground(ProductsListFragment.java:167) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 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

    PierrePierre
    3 times, last one
    Indri YunitaIndri Yunita
    6 times, last one
    filpgamefilpgame
    2 times, last one
    bmacedobmacedo
    2 times, last one
    ajinkya_wajinkya_w
    40 times, last one
    39 more bugmates