An error occurred while executing doInBackground()

Samebug tips0

There are no available Samebug tips.

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

Solutions on the web190

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.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference at org.json.JSONTokener.nextCleanInternal( at org.json.JSONTokener.nextValue( at org.json.JSONObject.<init>( at org.json.JSONObject.<init>( at data.JSONWeatherParser.getWeather( at$WeatherTask.doInBackground(MainActivity>.java:67) at$WeatherTask.doInBackground(MainActivity>.java:60) 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

5 times, last one,
Hiren AmaliyarHiren Amaliyar
4 times, last one,
Unknown visitor
Unknown visitor1 times, last one,
1 times, last one,
38 times, last one,
29 more bugmates