mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Fixed exception when HttpClient requests are cancelled and return empty strings
This commit is contained in:
parent
fc42d1b34c
commit
015362fc81
@ -90,7 +90,7 @@ public static string FormatQueryParameters(IEnumerable<KeyValuePair<string, stri
|
||||
public static bool IsResponseValid(string json, out LastFmApiError error)
|
||||
{
|
||||
// hmmm
|
||||
if (!json.Contains("error"))
|
||||
if (json.Length > 1 && !json.Contains("error"))
|
||||
{
|
||||
error = LastFmApiError.None;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user