Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Nov 19, 2025

  • Tests written, or not not needed

Fixes

Exception java.util.ConcurrentModificationException:
  at java.util.ArrayList.sort (ArrayList.java:1823)
  at java.util.Collections.sort (Collections.java:207)
  at kotlin.collections.CollectionsKt__MutableCollectionsJVMKt.sortWith (MutableCollectionsJVM.kt:42)
  at com.owncloud.android.utils.FileSortOrderByDate.sortLocalFiles (FileSortOrderByDate.kt:51)
  at com.owncloud.android.ui.adapter.LocalFileListAdapter.lambda$setSortOrder$6 (LocalFileListAdapter.java:392)
  at com.owncloud.android.ui.adapter.LocalFileListAdapter.$r8$lambda$WTDJyclhOx9wYl9P9c9Mv0A876o (Unknown Source)
  at com.owncloud.android.ui.adapter.LocalFileListAdapter$$ExternalSyntheticLambda3.run (D8$$SyntheticClass)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1156)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:651)
  at java.lang.Thread.run (Thread.java:1119)

Adds tests.

@alperozturk96 alperozturk96 force-pushed the fix/sort-concurrent-modification-exception branch from 2778400 to 01cd780 Compare November 20, 2025 07:58
@github-actions
Copy link

Codacy

SpotBugs

SpotBugs increased!

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/15985.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants