TeamAmaze / TeamAmaze/AmazeFileManager

`NumberFormatException` on `SshConnectionPool.ConnectionInfo()`

Open
#3,300 0 comments 2 reactions 1 assignee View on GitHub

@TranceLove is already working on this.

Since May 26, 2022.

Area-Ssh/Scp/Sftp From-Email Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

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)


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.