"WordPress Theme Development" was retired on July 6, 2019.

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

Android Build a Weather App (2015) Hooking Up the Model to the View Wrapping Up

Shahrokh Vahid
Shahrokh Vahid
2,119 Points

I've finished the program and right after the display shows up, a message says" Unfortunately stormy has stopped"

Error log says the problem is at :
08-10 20:16:31.225 7373-7373/shahrokh.com.stormy D/AndroidRuntime﹕ Shutting down VM 08-10 20:16:31.225 7373-7373/shahrokh.com.stormy E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: shahrokh.com.stormy, PID: 7373 java.lang.NullPointerException: id == null at java.util.TimeZone.getTimeZone(TimeZone.java:349) at shahrokh.com.stormy.CurrentWeather.getFormattedTime(CurrentWeather.java:80) at shahrokh.com.stormy.MainActivity.updateDisplay(MainActivity.java:153) at shahrokh.com.stormy.MainActivity.access$500(MainActivity.java:30) at shahrokh.com.stormy.MainActivity$2$3.run(MainActivity.java:114) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5942) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

Here is my code: https://drive.google.com/open?id=0Byi850jGezHhRVUzWlk4MmFUY2c

Yael P.
Yael P.
2,816 Points

At MainActivity.java change at line 179 from "return new CurrentWeather();" to "return currentWeather;"

Let me know if that helps.