Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.apache.sshd.common.io.IoAcceptor.getManagedSessions()' on a null object reference #414

Open
forenbuddy opened this issue Mar 3, 2025 · 1 comment
Milestone

Comments

@forenbuddy
Copy link

When trying to start the sftp service in prim-ftpd in logcat I get:

03-03 11:02:59.533  1049  4139 W ActivityManager: Bringing down service while still waiting for start foreground: ServiceRecord{d67bcb8 u0 org.primftpd/.services.SshServerService}
03-03 11:02:59.533  1049  1085 I ActivityManager: serviceForegroundCrash to crash app : ProcessRecord{24ecce0 14756:org.primftpd/u0a13} because of ServiceRecord{d67bcb8 u0 org.primftpd/.services.SshServerService}
03-03 11:02:59.536 14756 17781 E AndroidRuntime: FATAL EXCEPTION: ServiceStartArguments
03-03 11:02:59.536 14756 17781 E AndroidRuntime: Process: org.primftpd, PID: 14756
03-03 11:02:59.536 14756 17781 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Map org.apache.sshd.common.io.IoAcceptor.getManagedSessions()' on a null object reference
03-03 11:02:59.536 14756 17781 E AndroidRuntime: 	at org.apache.sshd.SshServer.getActiveSessions(SshServer.java:343)
03-03 11:02:59.536 14756 17781 E AndroidRuntime: 	at org.primftpd.services.SshServerService.stopServer(SshServerService.java:98)
03-03 11:02:59.536 14756 17781 E AndroidRuntime: 	at org.primftpd.services.ServerServiceHandler.handleStop(ServerServiceHandler.java:109)
03-03 11:02:59.536 14756 17781 E AndroidRuntime: 	at org.primftpd.services.ServerServiceHandler.handleMessage(ServerServiceHandler.java:61)
03-03 11:02:59.536 14756 17781 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
03-03 11:02:59.536 14756 17781 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:201)
03-03 11:02:59.536 14756 17781 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:288)
03-03 11:02:59.536 14756 17781 E AndroidRuntime: 	at android.os.HandlerThread.run(HandlerThread.java:67)

My device is Lenovo TB328XU

versionName=7.3

Installed from F-Droid

@wolpi
Copy link
Owner

wolpi commented Mar 8, 2025

Strange.
Does not happen on other devices.
By stacktrace it seems like this could be avoided easily with some if/else check, will be added.

@wolpi wolpi added this to the 7.4 milestone Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants