java.lang.RuntimeException: Unable to start activity ComponentInfo{com.murraystudio.weatherapp/com.murraystudio.weatherapp.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'com.murraystudio.weatherapp.datamodels.WeatherData$Condition com.murraystudio.weatherapp.datamodels.WeatherData.condition' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by sanic
, 10 months ago
Unable to start activity ComponentInfo{com.murraystudio.weatherapp/com.murraystudio.weatherapp.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'com.murraystudio.weatherapp.datamodels.WeatherData$Condition com.murraystudio.weatherapp.datamodels.WeatherData.condition' on a null object reference
via GitHub by blFeedbackBot
, 1 year ago
Unable to start activity ComponentInfo{us.shandian.blacklight/info.papdt.blacklight.ui.statuses.UserTimeLineActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String info.papdt.blacklight.model.UserModel.id' on a null object reference
via GitHub by mrwhale
, 1 year ago
Unable to start activity ComponentInfo{tv.piratemedia.lightcontroler/tv.piratemedia.lightcontroler.controlPreferences}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String tv.piratemedia.lightcontroler.api.Provider.Name' on a null object reference
via Stack Overflow by L Wira Satria M
, 1 year ago
Unable to start activity ComponentInfo{com.apps.userinarts.mobilemerchpre/com.apps.userinarts.MobileMerchPre.StoresCheckinActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.apps.userinarts.MobileMerchPre.data.StoreData.store_id' on a null object reference
via Stack Overflow by vitus
, 7 months ago
Unable to start activity ComponentInfo{com.finalyearstudentvitus.splash/com.finalyearstudentvitus.splash.permdisabled}: java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ApplicationInfo android.content.pm.PackageInfo.applicationInfo' on a null object reference
via GitHub by hidroh
, 2 years ago
Unable to start activity ComponentInfo{io.github.hidroh.materialistic/io.github.hidroh.materialistic.ItemActivity}: java.lang.NullPointerException: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.murraystudio.weatherapp/com.murraystudio.weatherapp.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'com.murraystudio.weatherapp.datamodels.WeatherData$Condition com.murraystudio.weatherapp.datamodels.WeatherData.condition' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)

Users with the same issue

Once, 1 month ago
33 times, 2 months ago
8 times, 2 months ago
468 times, 3 months ago
65 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.