TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.36k stars 1.58k forks source link

Crash reported by dasyad00 #3583

Closed amaze-issue-automation[bot] closed 2 years ago

amaze-issue-automation[bot] commented 2 years ago

Issue explanation (write below this line)

Exception

java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1 at java.util.ArrayList.remove(ArrayList.java:506) at com.amaze.filemanager.utils.DataUtils.removeServer(DataUtils.java:224) at com.amaze.filemanager.ui.dialogs.SftpConnectDialog.updateFtpConnection(SftpConnectDialog.kt:695) at com.amaze.filemanager.ui.dialogs.SftpConnectDialog.authenticateAndSaveSetup(SftpConnectDialog.kt:620) at com.amaze.filemanager.ui.dialogs.SftpConnectDialog.access$authenticateAndSaveSetup(SftpConnectDialog.kt:84) at com.amaze.filemanager.ui.dialogs.SftpConnectDialog$createFirstConnectCallback$1.invoke$lambda-0(SftpConnectDialog.kt:416) at com.amaze.filemanager.ui.dialogs.SftpConnectDialog$createFirstConnectCallback$1.$r8$lambda$4Ss-hGR5PFW2OckH5YdL_2Y6h0o(Unknown Source:0) at com.amaze.filemanager.ui.dialogs.SftpConnectDialog$createFirstConnectCallback$1$$ExternalSyntheticLambda0.onClick(Unknown Source:12) at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:191) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:233) at android.os.Looper.loop(Looper.java:344) at android.app.ActivityThread.main(ActivityThread.java:8212) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)


Reporter: dasyad00

dasyad00 commented 2 years ago

Issue explanation: The app crashes when pressing "Update" on a saved SFTP connection.

Another issue on the same update dialog: pressing "Delete" does nothing visibly different.

VishnuSanal commented 2 years ago

Dupe #3085