]> source.dussan.org Git - jgit.git/commit
Fixed several NPEs in the Fetch CLI 45/2345/2
authorSasa Zivkov <sasa.zivkov@sap.com>
Wed, 26 Jan 2011 16:28:47 +0000 (17:28 +0100)
committerChris Aniszczyk <caniszczyk@gmail.com>
Wed, 26 Jan 2011 17:38:59 +0000 (11:38 -0600)
commit65680da3ee2e423dd400c4ffc4195c4cf98ab77b
tree076a08871c30d77fb82fe5343e063b1afbc19325
parent990498b75d3d3955b629a48e5f39dd09bc7a3116
Fixed several NPEs in the Fetch CLI

The Fetch command line was failing with NPE in case some options were omitted.
Additionally, it was setting a negative timeout when no timeout option was used
which caused HttpURLConnection to throw an IllegalArgumentException.

Change-Id: I2c67e2e1a03044284d183d73f0b82bb7ff79de95
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Fetch.java