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

Sorting by relevance when search fails causes crash #4182

Closed
Mo-1996 opened this issue May 27, 2024 · 3 comments
Closed

Sorting by relevance when search fails causes crash #4182

Mo-1996 opened this issue May 27, 2024 · 3 comments
Labels
Issue-Bug Related unexpected behavior or something worth investigating. Needs-OPResponse Needs original poster to respond

Comments

@Mo-1996
Copy link

Mo-1996 commented May 27, 2024

Describe the bug
I failed the search and selected the type to sort by relevance. When I clicked on ascending, the app crashed.
In additon, I searched for files located under sub files, but no results were presented

To Reproduce
Steps to reproduce the behavior:

  1. Go to Search page
  2. Search for files, no results presented
  3. Click the "Sort By: Relevance"
  4. Select the type and click "ASCENDING"
  5. See error

Expected behavior
The app is running normally.

Screenshots
crash.webm
image

Smartphone (please complete the following information):

  • Device: [e.g. Nexus 5X]
  • OS: [e.g. Android 8]
  • Rooted: [e.g. No]
  • Version: [e.g. 3.10]

Additional context
Add any other context about the problem here.

@VishnuSanal
Copy link
Member

Thanks for reporting. Please share the crash report for further debugging.

@VishnuSanal VishnuSanal added Issue-Bug Related unexpected behavior or something worth investigating. Needs-OPResponse Needs original poster to respond labels May 30, 2024
@Mo-1996
Copy link
Author

Mo-1996 commented Jun 3, 2024

Thanks for reporting. Please share the crash report for further debugging.

java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
at java.util.ArrayList.(ArrayList.java:191)
at com.amaze.filemanager.ui.views.appbar.SearchView.updateResultList(SearchView.java:375)
at com.amaze.filemanager.ui.views.appbar.SearchView.onSortTypeSelected(SearchView.java:481)
at com.amaze.filemanager.ui.views.appbar.SearchView.lambda$showSearchResultsSortDialog$10(SearchView.java:464)
at com.amaze.filemanager.ui.views.appbar.SearchView.$r8$lambda$2i4K5Lmbv48UVtMgrOeSwx46nss(Unknown Source:0)
at com.amaze.filemanager.ui.views.appbar.SearchView$$ExternalSyntheticLambda9.onClick(Unknown Source:2)
at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:433)
at android.view.View.performClick(View.java:7664)
at android.view.View.performClickInternal(View.java:7638)
at android.view.View.access$3800(View.java:878)
at android.view.View$PerformClick.run(View.java:29899)
at android.os.Handler.handleCallback(Handler.java:966)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:293)
at android.app.ActivityThread.main(ActivityThread.java:9596)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1204)

@VishnuSanal
Copy link
Member

this is a duplicate to #4140, please track it there. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Related unexpected behavior or something worth investigating. Needs-OPResponse Needs original poster to respond
Projects
None yet
Development

No branches or pull requests

2 participants