diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2022-01-28 12:44:37 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2022-01-28 12:44:37 +0300 |
commit | 0621ceabad9ed23409e4a8d965190580d926c077 (patch) | |
tree | 2719b78253cbd1509cea79bf69543c03d58bbd78 /src/PriceListTools | |
parent | bb6cee1fe08befe918c0e85fa9f4a52b554b741d (diff) |
Throw Exception on null workbook
Diffstat (limited to 'src/PriceListTools')
-rw-r--r-- | src/PriceListTools/Source.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/PriceListTools/Source.cs b/src/PriceListTools/Source.cs index fd64012..c3e2231 100644 --- a/src/PriceListTools/Source.cs +++ b/src/PriceListTools/Source.cs @@ -10,6 +10,11 @@ namespace RehauSku.PriceListTools public Source(Workbook workbook) { + if (workbook == null) + { + throw new ArgumentException($"Нет рабочего файла"); + } + Sheet = workbook.ActiveSheet; Name = workbook.Name; |