aboutsummaryrefslogtreecommitdiff
path: root/Functions.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2021-11-29 17:10:43 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2021-11-29 17:10:43 +0300
commitd176a023f06d70cb577e64d1a917e77d677d2a2b (patch)
tree9fac9e0444baa16cb748d86abafbbb6c6b67909e /Functions.cs
parent15995027bfbc535e4b9ffa159607caaffdecc478 (diff)
Add clean request private method
Diffstat (limited to 'Functions.cs')
-rw-r--r--Functions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions.cs b/Functions.cs
index 9112822..6792195 100644
--- a/Functions.cs
+++ b/Functions.cs
@@ -15,7 +15,7 @@ namespace Rehau.Sku.Assist
Task<string> contentTask = Task.Run(() => SkuAssist.GetContent(request, httpClient));
Task<IDocument> documentTask = await contentTask.ContinueWith(content => SkuAssist.GetDocument(content));
IProduct product = await documentTask.ContinueWith(doc => SkuAssist.GetProductFromDocument(doc.Result));
- return product.ToString();
+ return product == null ? ExcelError.ExcelErrorNull.ToString() : product.ToString();
}
}
} \ No newline at end of file