diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitSsh.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitSsh.java index 33a87109b..c50044801 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitSsh.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitSsh.java @@ -290,7 +290,8 @@ public class TransportGitSsh extends SshTransport implements PackTransport { } super.close(); - process.destroy(); + if (process != null) + process.destroy(); } } @@ -347,7 +348,8 @@ public class TransportGitSsh extends SshTransport implements PackTransport { } super.close(); - process.destroy(); + if (process != null) + process.destroy(); } } }