TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.34k stars 1.58k forks source link

Searching causes crashes #3207

Closed sjl872964789 closed 2 years ago

sjl872964789 commented 2 years ago

Describe the bug I'm not sure which of my previous steps caused the problem, now amaze crashes every time I search t.

To Reproduce Steps to reproduce the behavior: Not sure

Expected behavior Don't crash

Screenshots 77

Smartphone (please complete the following information):

Additional context


java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.amaze.filemanager.adapters.data.LayoutElementParcelable.title' on a null object reference
 at com.amaze.filemanager.adapters.RecyclerAdapter.onBindViewHolder(RecyclerAdapter.java:765)
 at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:7065)
 at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:7107)
 at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:6012)
 at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6279)
 at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6118)
 at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6114)
 at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2303)
 at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1627)
 at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1587)
 at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:665)
 at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4134)
 at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:3851)
 at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4404)
 at android.view.View.layout(View.java:19590)
 at android.view.ViewGroup.layout(ViewGroup.java:6053)
 at androidx.swiperefreshlayout.wid
sjl872964789 commented 2 years ago

I found the following steps can reproduce the crash ezgif com-gif-maker