mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
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:
parent
d89dd984f4
commit
1e9c34f3aa
1 changed files with 3 additions and 0 deletions
|
@ -206,6 +206,9 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
|
|
||||||
ur.Response = SendRequestStream(url, stream, contentType, headers);
|
ur.Response = SendRequestStream(url, stream, contentType, headers);
|
||||||
|
|
||||||
|
if (ur.Response == null)
|
||||||
|
return ur;
|
||||||
|
|
||||||
XDocument xd = XDocument.Parse(ur.Response);
|
XDocument xd = XDocument.Parse(ur.Response);
|
||||||
|
|
||||||
XElement entry_element = xd.Element(AtomNS + "entry");
|
XElement entry_element = xd.Element(AtomNS + "entry");
|
||||||
|
|
Loading…
Reference in a new issue