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)
|
.Substring(script.IndexOf("push(") + 5)
|
||||||
.TrimEnd(new[] { ')', ';', '\n', ' ' });
|
.TrimEnd(new[] { ')', ';', '\n', ' ' });
|
||||||
|
|
||||||
|
if (!json.Contains("impressions"))
|
||||||
|
return null;
|
||||||
|
|
||||||
StoreResponce storeResponse = JsonConvert.DeserializeObject<StoreResponce>(json);
|
StoreResponce storeResponse = JsonConvert.DeserializeObject<StoreResponce>(json);
|
||||||
IProduct product = storeResponse
|
IProduct product = storeResponse
|
||||||
.Ecommerce
|
.Ecommerce
|
||||||
|
Loading…
Reference in New Issue
Block a user