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

GitHub | gqb | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    空指针错误

    GitHub | 8 months ago | gqb
    java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
  2. 0

    GitHub comment 102#200137220

    GitHub | 1 year ago | zourb
    java.lang.NullPointerException
  3. 0

    NPE in v0.4.2

    GitHub | 1 year ago | zourb
    java.lang.NullPointerException: Attempt to invoke virtual method 'master.flame.danmaku.danmaku.model.android.DrawingCacheHolder master.flame.danmaku.danmaku.model.android.DrawingCache.get()' on a null object reference
  4. Speed up your debug routine!

    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 master.flame.danmaku.danmaku.model.android.SimpleTextCacheStuffer.drawStroke()
    2. master.flame.danmaku
      DanmakuView.onDraw
      1. master.flame.danmaku.danmaku.model.android.SimpleTextCacheStuffer.drawStroke(SimpleTextCacheStuffer.java:64)
      2. master.flame.danmaku.danmaku.model.android.AndroidDisplayer.drawDanmaku(AndroidDisplayer.java:389)
      3. master.flame.danmaku.danmaku.model.android.AndroidDisplayer.draw(AndroidDisplayer.java:289)
      4. master.flame.danmaku.danmaku.model.BaseDanmaku.draw(BaseDanmaku.java:211)
      5. master.flame.danmaku.danmaku.renderer.android.DanmakuRenderer.draw(DanmakuRenderer.java:127)
      6. master.flame.danmaku.controller.DrawTask.drawDanmakus(DrawTask.java:341)
      7. master.flame.danmaku.controller.DrawTask.draw(DrawTask.java:232)
      8. master.flame.danmaku.controller.CacheManagingDrawTask.draw(CacheManagingDrawTask.java:122)
      9. master.flame.danmaku.controller.DrawHandler.draw(DrawHandler.java:614)
      10. master.flame.danmaku.ui.widget.DanmakuView.onDraw(DanmakuView.java:311)
      10 frames
    3. Android Platform
      Choreographer$CallbackRecord.run
      1. android.view.View.draw(View.java:16203)
      2. android.view.View.updateDisplayListIfDirty(View.java:15126)
      3. android.view.View.getDisplayList(View.java:15149)
      4. android.view.View.draw(View.java:15924)
      5. android.view.ViewGroup.drawChild(ViewGroup.java:3703)
      6. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3497)
      7. android.view.View.updateDisplayListIfDirty(View.java:15121)
      8. android.view.View.getDisplayList(View.java:15149)
      9. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3687)
      10. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3666)
      11. android.view.View.updateDisplayListIfDirty(View.java:15086)
      12. android.view.View.getDisplayList(View.java:15149)
      13. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3687)
      14. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3666)
      15. android.view.View.updateDisplayListIfDirty(View.java:15086)
      16. android.view.View.getDisplayList(View.java:15149)
      17. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3687)
      18. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3666)
      19. android.view.View.updateDisplayListIfDirty(View.java:15086)
      20. android.view.View.getDisplayList(View.java:15149)
      21. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3687)
      22. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3666)
      23. android.view.View.updateDisplayListIfDirty(View.java:15086)
      24. android.view.View.getDisplayList(View.java:15149)
      25. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3687)
      26. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3666)
      27. android.view.View.updateDisplayListIfDirty(View.java:15086)
      28. android.view.View.getDisplayList(View.java:15149)
      29. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3687)
      30. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3666)
      31. android.view.View.updateDisplayListIfDirty(View.java:15086)
      32. android.view.View.getDisplayList(View.java:15149)
      33. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3687)
      34. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3666)
      35. android.view.View.updateDisplayListIfDirty(View.java:15086)
      36. android.view.View.getDisplayList(View.java:15149)
      37. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:275)
      38. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:281)
      39. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:320)
      40. android.view.ViewRootImpl.draw(ViewRootImpl.java:2751)
      41. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2584)
      42. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2176)
      43. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1191)
      44. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6642)
      45. android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
      45 frames