Fix null response failure
This commit is contained in:
parent
5f4d421326
commit
56a2cb5015
@ -48,6 +48,9 @@ namespace Rehau.Sku.Assist
|
||||
.Substring(script.IndexOf("push(") + 5)
|
||||
.TrimEnd(new[] { ')', ';', '\n', ' ' });
|
||||
|
||||
if (!json.Contains("impressions"))
|
||||
return null;
|
||||
|
||||
StoreResponce storeResponse = JsonConvert.DeserializeObject<StoreResponce>(json);
|
||||
IProduct product = storeResponse
|
||||
.Ecommerce
|
||||
|
Loading…
Reference in New Issue
Block a user