java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)

  1. 0

    null object reference error in onCreate() method in Main Activity

    Stack Overflow | 5 months ago | Sherlock-and-MIB
    java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
  2. 0

    GitHub comment 1#51547544

    GitHub | 2 years ago | ivan19871002
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.androits.gps.test.pro/com.androits.gps.test.ui.SkyActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.NullPointerException

    GitHub | 2 years ago | e-yes
    java.lang.NullPointerException

  1. maxxi 1 times, last 1 month ago
  2. Nisha Singh 5 times, last 8 months ago
1 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.NullPointerException

    Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference

    at android.content.res.TypedArray.getString()
  2. Android Platform
    FrameLayout.<init>
    1. android.content.res.TypedArray.getString(TypedArray.java:176)
    2. android.view.View.<init>(View.java:3992)
    3. android.view.ViewGroup.<init>(ViewGroup.java:497)
    4. android.view.ViewGroup.<init>(ViewGroup.java:493)
    5. android.view.ViewGroup.<init>(ViewGroup.java:489)
    6. android.view.ViewGroup.<init>(ViewGroup.java:485)
    7. android.widget.FrameLayout.<init>(FrameLayout.java:103)
    7 frames
  3. Android
    PhoneWindow.setContentView
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.<init>(PhoneWindow.java:2226)
    2. com.android.internal.policy.impl.PhoneWindow.generateDecor(PhoneWindow.java:3316)
    3. com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3669)
    4. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:368)
    4 frames
  4. Android Platform
    Activity.setContentView
    1. android.app.Activity.setContentView(Activity.java:2145)
    1 frame
  5. com.example.ipt02
    MainActivity.onCreate
    1. com.example.ipt02.spotchecktrial1.MainActivity.onCreate(MainActivity.java:22)
    1 frame
  6. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:5990)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
    3 frames