mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 08:10: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);
|
ErrorDeliveryUtil.alertEvents(error, chanReqResponseEvents);
|
||||||
|
|
||||||
in.notifyError(error);
|
in.notifyError(error);
|
||||||
out.notifyError(error);
|
if (out != null)
|
||||||
|
out.notifyError(error);
|
||||||
|
|
||||||
finishOff();
|
finishOff();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user