java.lang.ClassCastException: com.zulip.android.viewholders.MessageHeaderParent cannot be cast to com.zulip.android.models.Message

GitHub | niftynei | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 81#235998547

    GitHub | 9 months ago | niftynei
    java.lang.ClassCastException: com.zulip.android.viewholders.MessageHeaderParent cannot be cast to com.zulip.android.models.Message

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.zulip.android.viewholders.MessageHeaderParent cannot be cast to com.zulip.android.models.Message

      at com.zulip.android.activities.RecyclerMessageAdapter.onViewRecycled()
    2. com.zulip.android
      RecyclerMessageAdapter.onViewRecycled
      1. com.zulip.android.activities.RecyclerMessageAdapter.onViewRecycled(RecyclerMessageAdapter.java:312)
      1 frame
    3. Android v7
      DefaultItemAnimator$6.onAnimationEnd
      1. android.support.v7.widget.RecyclerView$Recycler.dispatchViewRecycled(RecyclerView.java:5468)
      2. android.support.v7.widget.RecyclerView$Recycler.addViewHolderToRecycledViewPool(RecyclerView.java:5233)
      3. android.support.v7.widget.RecyclerView$Recycler.recycleCachedViewAt(RecyclerView.java:5163)
      4. android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:5207)
      5. android.support.v7.widget.RecyclerView.removeAnimatingView(RecyclerView.java:1154)
      6. android.support.v7.widget.RecyclerView.access$6400(RecyclerView.java:151)
      7. android.support.v7.widget.RecyclerView$ItemAnimatorRestoreListener.onAnimationFinished(RecyclerView.java:10727)
      8. android.support.v7.widget.RecyclerView$ItemAnimator.dispatchAnimationFinished(RecyclerView.java:11227)
      9. android.support.v7.widget.SimpleItemAnimator.dispatchMoveFinished(SimpleItemAnimator.java:279)
      10. android.support.v7.widget.DefaultItemAnimator$6.onAnimationEnd(DefaultItemAnimator.java:303)
      10 frames
    4. Android Support v4
      ViewPropertyAnimatorCompatJB$1.onAnimationEnd
      1. android.support.v4.view.ViewPropertyAnimatorCompatJB$1.onAnimationEnd(ViewPropertyAnimatorCompatJB.java:47)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114)
      2. android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239)
      3. android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766)
      4. android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801)
      5. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
      6. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      7. android.view.Choreographer.doFrame(Choreographer.java:603)
      8. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      9. android.os.Handler.handleCallback(Handler.java:739)
      10. android.os.Handler.dispatchMessage(Handler.java:95)
      11. android.os.Looper.loop(Looper.java:148)
      12. android.app.ActivityThread.main(ActivityThread.java:5422)
      12 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames