AmazeFileManager icon indicating copy to clipboard operation
AmazeFileManager copied to clipboard

`NumberFormatException` on `SshConnectionPool.ConnectionInfo()`

Open amaze-issue-automation[bot] opened this issue 2 years ago • 0 comments

Issue explanation (write below this line)

When I connect to a windows SFTP Server, due to the windows file system the first folder name is "/C:/". I can click on it and then Amaze crashes. It's probably because of the colon in the path name.

Contact me if you need more information. Thanks for the nice error handling page.

Exception

  • App Name: Amaze Dateimanager
  • Package: com.amaze.filemanager
  • Version: 3.7.0
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 12 - 32
  • Device: sunfish
  • Model: Pixel 4a
  • Product: sunfish
Crash log

java.lang.NumberFormatException: For input string: ""
at java.lang.Integer.parseInt(Integer.java:627)
at java.lang.Integer.parseInt(Integer.java:650)
at
com.amaze.filemanager.filesystem.ssh.SshConnectionPool$ConnectionInfo.<init>(SshConnectionPool.kt:255)
at
com.amaze.filemanager.ui.activities.MainActivity.showSftpDialog(MainActivity.java:1930)
at
com.amaze.filemanager.ui.views.drawer.Drawer.onNavigationItemActionClick(Drawer.java:846)
at
com.amaze.filemanager.ui.views.drawer.Drawer.lambda$addNewItem$8(Drawer.java:693)
at
com.amaze.filemanager.ui.views.drawer.Drawer.$r8$lambda$b_nPn_yOSv9L_EVu-HRvR1N7aeE(Unknown
Source:0)
at
com.amaze.filemanager.ui.views.drawer.Drawer$$ExternalSyntheticLambda2.onClick(Unknown
Source:4)
at android.view.View.performClick(View.java:7455)
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)