Skip to content

exception in file upload dialog when sorting z-a #16127

@CMThF

Description

@CMThF

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

File upload
Sort files z to a

Cause of error

Exception in thread "pool-29-thread-1" 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.FileSortOrderByName.sortLocalFiles(FileSortOrderByName.kt:60)
    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:0)
    at com.owncloud.android.ui.adapter.LocalFileListAdapter$$ExternalSyntheticLambda3.run(D8$$SyntheticClass:0)
    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)

App information

  • ID: com.nextcloud.client
  • Version: 30340190
  • Build flavor: gplay

Device information

  • Brand: samsung
  • Device: y2s
  • Model: SM-G986B
  • Id: TP1A.220624.014
  • Product: y2sxeea

Firmware

  • SDK: 33
  • Release: 13
  • Incremental: G986BXXSNHYB1

Expected behaviour

No crash

Actual behaviour

Crash

Android version

look at the dump

Device brand and model

Samsung Galaxy s20

Stock or custom OS?

Stock

Nextcloud android app version

look at the dump

Nextcloud server version

24

Using a reverse proxy?

No

Android logs

No response

Server error logs

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions