]> source.dussan.org Git - jgit.git/commit
Check connection's error stream before reading from it 55/5255/3
authorKevin Sawicki <kevin@github.com>
Tue, 6 Mar 2012 01:22:22 +0000 (17:22 -0800)
committerKevin Sawicki <kevin@github.com>
Tue, 6 Mar 2012 01:22:22 +0000 (17:22 -0800)
commit2c6187697c700654adc193d040e803a5438400f8
tree71d13be2cdb153166310bbab57b3e4c0fcf84dea
parenteedd77a97b3eb5c404ac8464ea3a59498a121c72
Check connection's error stream before reading from it

HttpURLConnection.getErrorStream can return null which is
currently not guarded against and will throw an NPE preventing
the actual error response code from bubbling up.

Change-Id: I04fb8dbda16b7df3b82fc579088a303b2fd21e87
org.eclipse.jgit/src/org/eclipse/jgit/transport/AmazonS3.java