java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.amir_p.bottomnavigation3/com.example.amir_p.bottomnavigation3.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference

Stack Overflow | Amir_P | 5 months ago
  1. 0

    context is null in custom view

    Stack Overflow | 5 months ago | Amir_P
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.amir_p.bottomnavigation3/com.example.amir_p.bottomnavigation3.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
  2. 0

    Change android theme at runtime

    Stack Overflow | 8 months ago | Shayan D
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.shahinsoft.snote/com.shahinsoft.snote.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
  3. 0

    Uncaught Exception

    GitHub | 8 months ago | MisterY
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.money.manager.ex/com.money.manager.ex.recurring.transactions.RecurringTransactionEditActivity}: java.lang.IllegalArgumentException: Account not found -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When viewing memory usage under Settings -> Memory -> Memory used by apps, a mystery app is present. Unlike with other apps, tapping this one causes settings to crash. I have attached the error information: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at com.android.settings.applications.ProcessStatsDetail.onViewCreated(ProcessStatsDetail.java:124) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:988) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1130) at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1953) at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:152) at android.app.Activity.performCreateCommon(Activity.java:6245) at android.app.Activity.performCreate(Activity.java:6253) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2403) ... 9 more

    JIRA | 8 months ago | Benjamin Kilpatrick
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
  6. 0

    Error: "must implement OnFragmentInteractionListener"

    Stack Overflow | 7 months ago | Shinr3x
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.shinr3x.termodinamica/com.shinr3x.termodinamica.MainActivity}: java.lang.RuntimeException: com.shinr3x.termodinamica.MainActivity@c8d33c6 must implement OnFragmentInteractionListener

  1. malhobayyeb 9 times, last 1 week ago
  2. bluebunnty 11 times, last 2 weeks ago
  3. Aria Pahlavan 733 times, last 7 days ago
  4. Alexandru Popa 12 times, last 3 weeks ago
  5. iridic 4 times, last 3 weeks ago
38 more registered users
6 unregistered visitors
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.RuntimeException

    Unable to start activity ComponentInfo{com.example.amir_p.bottomnavigation3/com.example.amir_p.bottomnavigation3.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
    2 frames