Community
Participate
Working Groups
Cloned from: 314498: NullPointer exception while disconnecting a non valid remote connection https://bugs.eclipse.org/bugs/show_bug.cgi?id=314498 1) Call org.eclipse.ptp.remotetools.internal.ssh.Connection.connect method. 2) If connection to remote host failed, then a call to disconnect will occur. try { defaultSession.connect(timeout); } catch (JSchException e) { disconnect(); throw new RemoteConnectionException( Messages.Connection_Connect_FailedConnect, e); } catch (Exception e) { disconnect(); throw new RemoteConnectionException( Messages.Connection_Connect_FailedUnsupportedKeySize, e); } 3) Line with "while (!sftpChannelPool.isEmpty())" will create a NPE, since the collection is initialized after in the control flow of "connect" method.
Fixed in ptp 3.0. Please test.
Fixed. Thanks.
Closing