You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The app crashes when attempting to sort search results after an empty search query.
To Reproduce
Steps to reproduce the behavior:
Click on 'Search' icon
Type a search query that returns no results (e.g., ‘desired search query’).
Click on 'Sort by' button
Click on either the ‘ASCENDING’ or ‘DESCENDING’ button.
Expected behavior
The app should not crash when sorting search results, even if no results are found.
Video
Screen.Recording.mov
Smartphone (please complete the following information):
Device: [Google Pixel 5]
OS: [Android 14]
Rooted: [No]
Version: [3.10]
Exception
App Name: Amaze File Manager
Package: com.amaze.filemanager
Version: 3.10
User Action: UI Error
Request: Application crash
OS: Linux Android 14 - 34
Device: redfin
Model: Pixel 5
Product: redfin
Crash log
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
at java.util.ArrayList.<init>(ArrayList.java:188)
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$11(SearchView.java:469)
at com.amaze.filemanager.ui.views.appbar.SearchView.$r8$lambda$d_i92XacrdBgqH38-DZKwptUe_8(Unknown Source:0)
at com.amaze.filemanager.ui.views.appbar.SearchView$$ExternalSyntheticLambda10.onClick(Unknown Source:2)
at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:410)
at android.view.View.performClick(View.java:7659)
at android.view.View.performClickInternal(View.java:7636)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:30156)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
The text was updated successfully, but these errors were encountered:
Describe the bug
The app crashes when attempting to sort search results after an empty search query.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The app should not crash when sorting search results, even if no results are found.
Video
Screen.Recording.mov
Smartphone (please complete the following information):
Exception
Crash log
The text was updated successfully, but these errors were encountered: