Browse Source

Prevent NPE during fetch and push via SSH

Bug: 340928
Change-Id: I870b77eeffa70a57891d7253a06ad7d44d808ee4
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-0.12
Matthias Sohn 14 years ago
parent
commit
5152ed8e2e
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitSsh.java

6
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();
}
}
}

Loading…
Cancel
Save