patch as per issue 739

This commit is contained in:
Alex Heneveld 2011-10-28 01:40:07 +01:00
parent 15657dc3c5
commit f4656c9e05
2 changed files with 4 additions and 2 deletions

View File

@ -342,7 +342,8 @@ public class JschSshClient implements SshClient {
@Override @Override
public boolean apply(Throwable arg0) { public boolean apply(Throwable arg0) {
return arg0.getMessage() != null && arg0.getMessage().indexOf(input) != -1; return (arg0.toString().indexOf(input) != -1)
|| (arg0.getMessage() != null && arg0.getMessage().indexOf(input) != -1);
} }
}); });

View File

@ -396,7 +396,8 @@ public class SshjSshClient implements SshClient {
@Override @Override
public boolean apply(Throwable arg0) { public boolean apply(Throwable arg0) {
return arg0.getMessage() != null && arg0.getMessage().indexOf(input) != -1; return (arg0.toString().indexOf(input) != -1)
|| (arg0.getMessage() != null && arg0.getMessage().indexOf(input) != -1);
} }
}); });