Fix null response failure

This commit is contained in:
Sergey Chebotar 2021-12-05 15:35:43 +03:00
parent 5f4d421326
commit 56a2cb5015

View File

@ -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