aboutsummaryrefslogtreecommitdiff
path: root/Source/ExcelDNA
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2021-12-03 13:24:31 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2021-12-03 13:24:31 +0300
commit2f7c5688ddd0d4145b91f5660f8f49df70081b28 (patch)
treee7d57486b4bffad40ed84af8e6a42a63de9e546b /Source/ExcelDNA
parentb5c71350700a486b8a8d1fa0fe7db32220963eba (diff)
Fix null return
Diffstat (limited to 'Source/ExcelDNA')
-rw-r--r--Source/ExcelDNA/Functions.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/ExcelDNA/Functions.cs b/Source/ExcelDNA/Functions.cs
index db882c5..b348fc9 100644
--- a/Source/ExcelDNA/Functions.cs
+++ b/Source/ExcelDNA/Functions.cs
@@ -25,10 +25,16 @@ namespace Rehau.Sku.Assist
{
return "Загрузка...";
}
+
+ else if (result == null)
+ {
+ return "Не найдено";
+ }
+
else
{
MemoryCache.Default.Add(request, result, System.DateTime.Now.AddMinutes(10));
- return result == null ? "Не найдено" : result.ToString();
+ return result.ToString();
}
}
}