Check error stream is not null before notifying error (#961)

Co-authored-by: Jeroen van Erp <jeroen@hierynomus.com>
This commit is contained in:
Ramkumar
2024-09-13 20:35:37 +02:00
committed by GitHub
parent f4f8071020
commit 31ed35407c

View File

@@ -225,7 +225,9 @@ public class SessionChannel
@Override
public void notifyError(SSHException error) {
err.notifyError(error);
if (err != null) {
err.notifyError(error);
}
super.notifyError(error);
}