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)

@alperozturk96 alperozturk96 force-pushed the fix/sort-concurrent-modification-exception branch 3 times, most recently from dee3dc6 to 5640578 Compare November 25, 2025 07:33
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 force-pushed the fix/sort-concurrent-modification-exception branch from 5640578 to 9e2ae86 Compare November 26, 2025 08:00
Signed-off-by: alperozturk <alper_ozturk@proton.me>
@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

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4242
Correctness7373
Dodgy code272272
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3536
Performance4848
Security1818
Total498499

SpotBugs increased!

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