java.lang.NullPointerException: Attempt to invoke virtual method 'int jp.bebeit.fuyokeisan.a.a()' on a null object reference

teratail.com | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Android - Android Viewpagerを利用していて,起動時に強制終了する端末が一部ある問題。(62743)|teratail

    teratail.com | 3 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'int jp.bebeit.fuyokeisan.a.a()' on a null object reference
  2. 0
    samebug tip
    When you use findViewById inside an activity it is going to look for a View inside your main_activity.xml. If it's not there, it throws this exception, try to use the right view to call findviewById.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

    GitHub | 2 years ago | ratnesh-ray
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

    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 virtual method 'int jp.bebeit.fuyokeisan.a.a()' on a null object reference

      at jp.bebeit.fuyokeisan.e.l()
    2. jp.bebeit.fuyokeisan
      e.onStart
      1. jp.bebeit.fuyokeisan.e.l(Unknown Source)
      2. jp.bebeit.fuyokeisan.e.k(Unknown Source)
      3. jp.bebeit.fuyokeisan.e.a(Unknown Source)
      4. jp.bebeit.fuyokeisan.e.onStart(Unknown Source)
      4 frames
    3. Android Support v4
      ViewPager.onMeasure
      1. android.support.v4.app.Fragment.performStart(Unknown Source)
      2. android.support.v4.app.v.a(Unknown Source)
      3. android.support.v4.app.v.a(Unknown Source)
      4. android.support.v4.app.v.d(Unknown Source)
      5. android.support.v4.app.v.f(Unknown Source)
      6. android.support.v4.app.v.b(Unknown Source)
      7. android.support.v4.app.h.d(Unknown Source)
      8. android.support.v4.app.x.b(Unknown Source)
      9. android.support.v4.view.ViewPager.a(Unknown Source)
      10. android.support.v4.view.ViewPager.c(Unknown Source)
      11. android.support.v4.view.ViewPager.onMeasure(Unknown Source)
      11 frames
    4. Android Platform
      View.measure
      1. android.view.View.measure(View.java:17520)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5464)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      6. android.view.View.measure(View.java:17520)
      6 frames
    5. Android Support v4
      DrawerLayout.onMeasure
      1. android.support.v4.widget.DrawerLayout.onMeasure(Unknown Source)
      1 frame
    6. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:17520)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5464)
      3. android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
      3 frames
    7. Android v7
      ContentFrameLayout.onMeasure
      1. android.support.v7.widget.ContentFrameLayout.onMeasure(Unknown Source)
      1 frame
    8. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:17520)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5464)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      6. android.view.View.measure(View.java:17520)
      7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5464)
      8. android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
      9. android.view.View.measure(View.java:17520)
      10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5464)
      11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      12. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      13. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      14. android.view.View.measure(View.java:17520)
      15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5464)
      16. android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
      16 frames
    9. Android
      PhoneWindow$DecorView.onMeasure
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2563)
      1 frame
    10. Android Platform
      ActivityThread.main
      1. android.view.View.measure(View.java:17520)
      2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2005)
      3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1170)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1376)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1058)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5796)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:580)
      9. android.view.Choreographer.doFrame(Choreographer.java:550)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
      11. android.os.Handler.handleCallback(Handler.java:739)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:211)
      14. android.app.ActivityThread.main(ActivityThread.java:5335)
      14 frames
    11. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    12. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
      2 frames