Skip to content

Commit

Permalink
Check error stream is not null before notifying error (#961)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeroen van Erp <[email protected]>
  • Loading branch information
ramkumarr and hierynomus authored Sep 13, 2024
1 parent f4f8071 commit 31ed354
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ protected void gotExtendedData(SSHPacket buf)

@Override
public void notifyError(SSHException error) {
err.notifyError(error);
if (err != null) {
err.notifyError(error);
}
super.notifyError(error);
}

Expand Down

0 comments on commit 31ed354

Please sign in to comment.