Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on displayAvatar #68

Open
rlentieul213 opened this issue Jan 27, 2025 · 1 comment
Open

Crash on displayAvatar #68

rlentieul213 opened this issue Jan 27, 2025 · 1 comment
Assignees

Comments

@rlentieul213
Copy link

Hello !
using your sdk on prod application, we randomly get this crash:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'androidx.recyclerview.widget.RecyclerView$Adapter androidx.recyclerview.widget.RecyclerView.getAdapter()' on a null object reference
       at com.dimelo.dimelosdk.main.RcDimeloChatAdapter$DimeloViewHolder.displayAvatar(RcDimeloChatAdapter.java:103)
       at com.dimelo.dimelosdk.main.RcSystemMessageViewHolder.bindViewHolder(RcSystemMessageViewHolder.java:139)
       at com.dimelo.dimelosdk.main.RcDimeloChatAdapter.onBindViewHolder(RcDimeloChatAdapter.java:282)
       at com.dimelo.dimelosdk.main.RcDimeloChatAdapter.onBindViewHolder(RcDimeloChatAdapter.java:39)
       at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:7747)
       at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:7847)
       at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:6646)
       at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6917)
       at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6757)
       at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6753)
       at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2362)
       at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java)
       at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1622)
       at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:662)
       at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4645)
       at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:4348)
       at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4919)
      ....

we have been experiencing this issue for several releases now.
Could you add a fix for this please ?

Android Dimelo SDK 3.1.0

@waelba
Copy link
Contributor

waelba commented Jan 27, 2025

Hi @rlentieul213,

I created an internal Jira ticket to resolve this issue, I will let you informed when we release a new version.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants