Throw Exception on null workbook

This commit is contained in:
Sergey Chebotar 2022-01-28 12:44:37 +03:00
parent bb6cee1fe0
commit 0621ceabad

View File

@ -10,6 +10,11 @@ namespace RehauSku.PriceListTools
public Source(Workbook workbook)
{
if (workbook == null)
{
throw new ArgumentException($"Нет рабочего файла");
}
Sheet = workbook.ActiveSheet;
Name = workbook.Name;