java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ribo_b.home/com.example.ribo_b.home.MainPage}: 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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Java Beginner
, 1 year ago
Unable to start activity ComponentInfo{com.example.ribo_b.home/com.example.ribo_b.home.MainPage}: java.lang.NullPointerException
via Stack Overflow by user3517495
, 2 years ago
Unable to start activity ComponentInfo{****************/****************.MainActivity}: java.lang.NullPointerException
via GitHub by JonasPrap
, 2 years ago
Unable to start activity ComponentInfo{com.xxxxx/mobi.pdf417.activity.Pdf417ScanActivity}: java.lang.NullPointerException
via GitHub by blFeedbackBot
, 2 years ago
Unable to start activity ComponentInfo{us.shandian.blacklight/info.papdt.blacklight.ui.statuses.UserTimeLineActivity}: java.lang.NullPointerException
via GitHub by blinskey
, 2 years ago
Unable to start activity ComponentInfo{com.benlinskey.greekreference/com.benlinskey.greekreference.MainActivity}: java.lang.NullPointerException
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ribo_b.home/com.example.ribo_b.home.MainPage}: java.lang.NullPointerException
at android.widget.Toast.(Toast.java:120)
at android.widget.Toast.makeText(Toast.java:287)
at com.example.ribo_b.home.MainPage.onCreate(MainPage.java:14)
at android.app.Activity.performCreate(Activity.java:5600)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2508)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2603)
at android.app.ActivityThread.access$900(ActivityThread.java:174)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5752)
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:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)

Users with the same issue

2 times, 8 months ago
13 times, 4 months ago
4 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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