java.lang.RuntimeException

Unable to start activity ComponentInfo{in.company.timesheet/in.company.timesheet.SampleActivity}: java.lang.NullPointerException

Solutions on the web39022

  • Unable to start activity ComponentInfo{in.company.timesheet/in.company.timesheet.SampleActivity}: java.lang.NullPointerException
  • Unable to start activity ComponentInfo{Activity}: java.lang.NullPointerException
  • Unable to start activity ComponentInfo{Activity}: java.lang.NullPointerException
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{in.company.timesheet/in.company.timesheet.SampleActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2309) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2366) at android.app.ActivityThread.access$600(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1343) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5330) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at in.company.timesheet.SampleActivity.onCreate(SampleActivity.java:20) at android.app.Activity.performCreate(Activity.java:5135) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2273)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.