Skip to content

Commit

Permalink
Check error stream is not null before notifying error
Browse files Browse the repository at this point in the history
  • Loading branch information
ramkumarr committed Aug 28, 2024
1 parent f525ed0 commit 853509d
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 853509d

Please sign in to comment.