Android Build a Weather App Hooking Up the Model to the View Plugging in the Data

I am getting a NullPointerExcetion ...........

I am getting a null pointer exception when i run the app ....

Here is my error lines......... 2019-03-22 12:21:49.596 15020-15078/? E/ActivityThread: Failed to find provider info for com.facebook.appmanager.oxygen.nekodirect.progress 2019-03-22 12:21:49.643 14868-14951/com.yogigorle.stormy E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher Process: com.yogigorle.stormy, PID: 14868 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.yogigorle.stormy.CurrentWeather.getLocationLabel()' on a null object reference at com.yogigorle.stormy.MainActivity$1.onResponse( at okhttp3.RealCall$AsyncCall.execute( at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at

Tonnie Fanadez
Tonnie Fanadez
UX Design Techdegree Graduate 21,204 Points

Hi bhogi gandu

Have seen the Log Cat error but need to see your code around line 71 on the MainActivity. It seems there is something that has been initialized possibly the CurrentWeather class or some TextView.

Let me know please.