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 Android Lists and Adapters (2015) Lists with RecyclerViews Creating the Item Layout

Joyce Chidiadi
Joyce Chidiadi
1,867 Points

FATAL ERROR! My app keeps crashing

My app keeps crashing all the way from "Build a weather app". No one has responded to my call for help since the past 2 weeks.

I get this error message when I debug:

02-02 17:12:00.172 25835-25835/joycechidiadi.com.weatherappy E/AndroidRuntime: FATAL EXCEPTION: main Process: joycechidiadi.com.weatherappy, PID: 25835 java.lang.NullPointerException: Attempt to invoke virtual method 'joycechidiadi.com.weatherappy.weather.Day[] joycechidiadi.com.weatherappy.weather.Forecast.getDailyForecast()' on a null object reference at joycechidiadi.com.weatherappy.ui.AppyActivity.startDailyActivity(AppyActivity.java:273) at joycechidiadi.com.weatherappy.ui.AppyActivity_ViewBinding$1.doClick(AppyActivity_ViewBinding.java:42) at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22) at android.view.View.performClick(View.java:5697) at android.widget.TextView.performClick(TextView.java:10826)

What can I do to get the app to load weather data and move to the next activity? I have used Ben's code to cross-check mine. Everything is almost the same but same issue.