mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +03:00
Check error stream is not null before notifying error (#961)
Co-authored-by: Jeroen van Erp <jeroen@hierynomus.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user