android icon indicating copy to clipboard operation
android copied to clipboard

Setup of sync folders leads to crash

Open dexic79 opened this issue 1 year ago • 0 comments

⚠️ Before posting ⚠️

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

Steps to reproduce

Go into the settings of a couple of setting folders. At some point, the app crashes.

Expected behaviour

No crash

Actual behaviour

Crash

Android version

12

Device brand and model

Fairphone 4

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

3.28.1

Nextcloud server version

Murena.io

Using a reverse proxy?

I don't know

Android logs

Cause of error

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 29, Size: 0
    at java.util.ArrayList.get(ArrayList.java:437)
    at com.owncloud.android.ui.adapter.SyncedFolderAdapter.get(SyncedFolderAdapter.java:206)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.onSaveSyncedFolderPreference(SyncedFoldersActivity.kt:674)
    at com.owncloud.android.ui.dialog.SyncedFolderPreferencesDialogFragment$OnSyncedFolderSaveClickListener.onClick(SyncedFolderPreferencesDialogFragment.kt:482)
    at android.view.View.performClick(View.java:7455)
    at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1213)
    at android.view.View.performClickInternal(View.java:7432)
    at android.view.View.access$3700(View.java:835)
    at android.view.View$PerformClick.run(View.java:28810)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7870)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

App information

  • ID: com.nextcloud.client
  • Version: 30280190
  • Build flavor: generic

Device information

  • Brand: Fairphone
  • Device: FP4
  • Model: FP4
  • Id: SQ3A.220705.004
  • Product: FP4eea

Firmware

  • SDK: 32
  • Release: 12
  • Incremental: eng.root.20240325.215908

Server error logs

No response

Additional information

No response

dexic79 avatar Apr 06 '24 13:04 dexic79