Don't parse null response string when Picasa upload fails

Skip trying to parse response if it is null. Errors will get reportedly
properly.
Fixes #1983
This commit is contained in:
campbeb 2016-10-15 15:41:52 -04:00
parent d89dd984f4
commit 1e9c34f3aa

View file

@ -206,6 +206,9 @@ public override UploadResult Upload(Stream stream, string fileName)
ur.Response = SendRequestStream(url, stream, contentType, headers);
if (ur.Response == null)
return ur;
XDocument xd = XDocument.Parse(ur.Response);
XElement entry_element = xd.Element(AtomNS + "entry");