commit | 2c6187697c700654adc193d040e803a5438400f8 | [log] [tgz] |
---|---|---|
author | Kevin Sawicki <kevin@github.com> | Mon Mar 05 17:22:22 2012 -0800 |
committer | Kevin Sawicki <kevin@github.com> | Mon Mar 05 17:22:22 2012 -0800 |
tree | 71d13be2cdb153166310bbab57b3e4c0fcf84dea | |
parent | eedd77a97b3eb5c404ac8464ea3a59498a121c72 [diff] |
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