java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ribo_b.home/com.example.ribo_b.home.MainPage}: java.lang.NullPointerException

Stack Overflow | Java Beginner | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Intent has cause the application to stop

    Stack Overflow | 7 months ago | Java Beginner
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ribo_b.home/com.example.ribo_b.home.MainPage}: java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at android.widget.Toast.<init>()
  2. Android Platform
    Toast.makeText
    1. android.widget.Toast.<init>(Toast.java:120)
    2. android.widget.Toast.makeText(Toast.java:287)
    2 frames
  3. com.example.ribo_b
    MainPage.onCreate
    1. com.example.ribo_b.home.MainPage.onCreate(MainPage.java:14)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5600)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2508)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2603)
    5. android.app.ActivityThread.access$900(ActivityThread.java:174)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:146)
    9. android.app.ActivityThread.main(ActivityThread.java:5752)
    9 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame