Fix null pointer exception when reporting on SSH server startup failure
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -84,7 +84,7 @@ public class SshServlet extends HttpServlet {
|
|||||||
sshd.start();
|
sshd.start();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
sshd = null;
|
sshd = null;
|
||||||
throw new ServletException("Cannot start sshd on " + sshd.getPort(), e);
|
throw new ServletException("Cannot start sshd on " + myPort, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user