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;