Home directory might not be set in DFS.
Change-Id: I3528685838065dc291826fc73a37126af7bf47ce
JGitSshClient.PREFERRED_AUTHENTICATIONS,
defaultAuths);
}
- try {
- jgitClient.setAttribute(JGitSshClient.HOME_DIRECTORY,
- home.getAbsoluteFile().toPath());
- } catch (SecurityException | InvalidPathException e) {
+ if (home != null && home.getAbsoluteFile() != null) {
+ try {
+ jgitClient.setAttribute(JGitSshClient.HOME_DIRECTORY,
+ home.getAbsoluteFile().toPath());
+ } catch (SecurityException | InvalidPathException e) {
// Ignore
+ }
}
// Other things?
return client;