]> source.dussan.org Git - jgit.git/commit
Fix a NullPointerException if properties file doesn't exist 74/16774/2
authorJames Yonan <james@openvpn.net>
Wed, 25 Sep 2013 18:24:16 +0000 (12:24 -0600)
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>
Thu, 13 Feb 2014 23:58:03 +0000 (18:58 -0500)
commit7bb7299e8a815ac7884f429e3bc710e0c27c121c
tree7bc45ad9126d1890c14c81feef55ca34bb17eed9
parent48e36d8cb335382b99ec829d0dfe34be71ed49bb
Fix a NullPointerException if properties file doesn't exist

For example with following URL,

  amazon-s3://.jgit@mybucket/foo.git

if ~/.jgit is missing, jgit command will throw a NullPointerException.

With this patch, a reasonable error message will be emitted:

  fatal: Cannot read file /Users/jamesyonan/.jgit

Change-Id: I1d366f2d55e170d2972715c657c8e2d10c8d87d2
Signed-off-by: James Yonan <james@openvpn.net>
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportAmazonS3.java