Skip to content

NPE in Ssh2Client.toString() #10

@ghost

Description

I ran into a NPE in Ssh2Client.toString() when I enabled logging, set an own logger with LoggerFactory.setInstance(...) and connected to a SSH server.
The NPE happened at the first two log entries where the source is a Ssh2Client.
The first log entry reads "Connecting @:22".
The second log entry reads "Remote identification is SSH-2.0-OpenSSH_7.2".
At this point the Ssh2Client's field "transport" is null which causes the NPE in toString().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions