mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
Non-final ChannelOutputStream field may be null if we haven't received channel open confirmation or channel open failed. So do null-check.
This commit is contained in:
@@ -240,7 +240,8 @@ public abstract class AbstractChannel
|
||||
ErrorDeliveryUtil.alertEvents(error, chanReqResponseEvents);
|
||||
|
||||
in.notifyError(error);
|
||||
out.notifyError(error);
|
||||
if (out != null)
|
||||
out.notifyError(error);
|
||||
|
||||
finishOff();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user