TeamAmaze / TeamAmaze/AmazeFileManager
Crash on MainActivity::showSftpDialog
Open
Nobody has claimed this yet.
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)
Tried to modify sftp connection
Exception
- User Action: UI Error
- Request: Application crash
- Version: 3.5.3
- OS: Linux Android 11 - 30
- Device: crosshatch
- Model: Pixel 3 XL
- Product: crosshatch
Crash log
java.lang.NullPointerException: Attempt to invoke virtual method 'int
java.lang.String.indexOf(int)' on a null object reference
at
com.amaze.filemanager.ui.activities.MainActivity.showSftpDialog(MainActivity.java:1717)
at
com.amaze.filemanager.ui.views.drawer.Drawer.onNavigationItemActionClick(Drawer.java:769)
at
com.amaze.filemanager.ui.views.drawer.Drawer.lambda$addNewItem$6(Drawer.java:618)
at
com.amaze.filemanager.ui.views.drawer.Drawer.lambda$addNewItem$6$Drawer(Unknown
Source:0)
at
com.amaze.filemanager.ui.views.drawer.-$$Lambda$Drawer$_3Uvef9h226E69-ESXfTVfXxUdk.onClick(Unknown
Source:4)
at android.view.View.performClick(View.java:7448)
at android.view.View.performClickInternal(View.java:7425)
at android.view.View.access$3600(View.java:810)
at android.view.View$PerformClick.run(View.java:28305)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7660)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in MainActivity.java at showSftpDialog, line 1717, using the supplied stack trace as the entry point. Reproduce the crash while modifying an SFTP connection on Android 11 with version 3.5.3, then verify that the dialog opens without the reported NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100