java.lang.RuntimeException

Unable to start activity ComponentInfo{websters.smartindiaserviceapp/websters.smartindiaserviceapp.Activities.WelcomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.FragmentTransaction android.support.v4.app.FragmentManager.beginTransaction()' on a null object reference


Solutions on the web46359

Solution icon of stackoverflow
Unable to start activity ComponentInfo{websters.smartindiaserviceapp/websters.smartindiaserviceapp.Activities.WelcomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.FragmentTransaction android.support.v4.app.FragmentManager.beginTransaction()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{MyActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentHostCallback.getContext()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{my.package.name}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.v4.app.Fragment.getView()' on a null object reference

Solution icon of stackexchange-android
via Android Enthusiasts by Amin Shabanzadeh
, 6 months ago
Unable to start activity ComponentInfo{ir.amins.navigationdrawer/ir.amins.navigationdrawer.HomeAct}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.DrawerLayout.setDrawerListener(android.support.v4.widget.DrawerLayout$DrawerListener)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{carsaleapp.shanaka.com.carsaleapp/carsaleapp.shanaka.com.carsaleapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.FitnessTracker/com.example.FitnessTracker.ExerciseTracker}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.newmoney.night_life_now/com.newmoney.night_life_now.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by omar
, 1 year ago
Unable to start activity ComponentInfo{com.emad.gooddeals/com.emad.gooddeals.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.SwipeRefreshLayout.setOnRefreshListener(android.support.v4.widget.SwipeRefreshLayout$OnRefreshListener)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.avena.avenafit/com.avena.avenafit.onboarding.MainActivity_}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Alan
, 1 year ago
Unable to start activity ComponentInfo{br.unisinos.mobicine/br.unisinos.mobicine.activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference

Stack trace

  • java.lang.RuntimeException: Unable to start activity ComponentInfo{websters.smartindiaserviceapp/websters.smartindiaserviceapp.Activities.WelcomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.FragmentTransaction android.support.v4.app.FragmentManager.beginTransaction()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

7 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
3 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
104 more bugmates