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:
Shawn O. Pearce
2009-01-15 08:44:55 -08:00
parent 2c2e172328
commit 5bb9c0f48f

View File

@@ -84,7 +84,7 @@ public class SshServlet extends HttpServlet {
sshd.start();
} catch (IOException e) {
sshd = null;
throw new ServletException("Cannot start sshd on " + sshd.getPort(), e);
throw new ServletException("Cannot start sshd on " + myPort, e);
}
}