java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bmt_01/com.example.bmt_01.MainActivity}: java.lang.NullPointerException

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

Solutions on the web

via Stack Overflow by Leo
, 1 year ago
Unable to start activity ComponentInfo{com.example.bmt_01/com.example.bmt_01.MainActivity}: java.lang.NullPointerException
via Stack Overflow by user3517495
, 2 years ago
Unable to start activity ComponentInfo{****************/****************.MainActivity}: java.lang.NullPointerException
via Stack Overflow by J. Doe
, 1 year ago
Unable to instantiate activity ComponentInfo{com.hubermoritz.beercounter.beercounter02/com.hubermoritz.beercounter.beercounter02.MainActivity}: java.lang.NullPointerException
via GitHub by HashEngineering
, 4 months ago
Unable to start activity ComponentInfo{hashengineering.darkcoin.wallet_test/de.schildbach.wallet.ui.WalletActivity}: java.lang.NullPointerException
via GitHub by mmanishh
, 1 year ago
Unable to start activity ComponentInfo{com.rinc.ruprise.r/me.iwf.photopicker.PhotoPickerActivity}: java.lang.NullPointerException
via GitHub by scottwainstock
, 1 year ago
Unable to start activity ComponentInfo{com.pbm/com.pbm.SplashScreen}: java.lang.NullPointerException
java.lang.NullPointerException:
at com.example.bmt_01.MainActivity.onCreate(MainActivity.java:48)
at android.app.Activity.performCreate(Activity.java:5451)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
at android.app.ActivityThread.access$900(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)

Users with the same issue

You are the first who have seen this exception.

Write tip

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