Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


getting java.lang.NullPointerException and json exception in my weather app and android list and adapter app

The following are the errors which I am getting in my logcat: 02-06 11:09:53.181 4055-4096/com.example.pritika.stormy E/MainActivity: Exception caught: org.json.JSONException: No value for America/Los_Angeles at org.json.JSONObject.get(JSONObject.java:389) at org.json.JSONObject.getString(JSONObject.java:550) at com.example.pritika.stormy.ui.MainActivity.getCurrentDetails(MainActivity.java:224) at com.example.pritika.stormy.ui.MainActivity.parseForecastDetails(MainActivity.java:165) at com.example.pritika.stormy.ui.MainActivity.access$400(MainActivity.java:38) at com.example.pritika.stormy.ui.MainActivity$2.onResponse(MainActivity.java:113) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:33) 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)