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

Stack Overflow | 이영동 | 4 months ago
  1. 0

    android app crach when textview marquee

    Stack Overflow | 4 months ago | 이영동
    java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    android glsurfaceview null pointer exception

    Stack Overflow | 6 years ago | kml_ckr
    java.lang.NullPointerException

    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 'int java.lang.CharSequence.length()' on a null object reference

      at android.text.TextLine.handleText()
    2. Android Platform
      FrameLayout.draw
      1. android.text.TextLine.handleText(TextLine.java:823)
      2. android.text.TextLine.handleRun(TextLine.java:1030)
      3. android.text.TextLine.drawRun(TextLine.java:466)
      4. android.text.TextLine.draw(TextLine.java:264)
      5. android.text.Layout.drawText(Layout.java:358)
      6. android.text.Layout.draw(Layout.java:209)
      7. android.widget.TextView.onDraw(TextView.java:6506)
      8. android.view.View.draw(View.java:16642)
      9. android.view.View.draw(View.java:16445)
      10. android.view.ViewGroup.drawChild(ViewGroup.java:3713)
      11. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3506)
      12. android.view.View.draw(View.java:16440)
      13. android.view.ViewGroup.drawChild(ViewGroup.java:3713)
      14. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3506)
      15. android.view.View.draw(View.java:16539)
      16. android.view.View.draw(View.java:16445)
      17. android.view.ViewGroup.drawChild(ViewGroup.java:3713)
      18. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3506)
      19. android.view.View.draw(View.java:16440)
      20. android.view.ViewGroup.drawChild(ViewGroup.java:3713)
      21. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3506)
      22. android.view.View.draw(View.java:16440)
      23. android.view.ViewGroup.drawChild(ViewGroup.java:3713)
      24. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3506)
      25. android.view.View.draw(View.java:16539)
      26. android.widget.FrameLayout.draw(FrameLayout.java:598)
      26 frames
    3. Android
      PhoneWindow$DecorView.draw
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:3111)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:3065)
      2. android.view.ViewRootImpl.draw(ViewRootImpl.java:2974)
      3. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2744)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2330)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1305)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7026)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:826)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:605)
      9. android.view.Choreographer.doFrame(Choreographer.java:575)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:812)
      11. android.os.Handler.handleCallback(Handler.java:739)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:145)
      14. android.app.ActivityThread.main(ActivityThread.java:6914)
      14 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
      2 frames