Throw Exception on null workbook
This commit is contained in:
parent
bb6cee1fe0
commit
0621ceabad
@ -10,6 +10,11 @@ namespace RehauSku.PriceListTools
|
|||||||
|
|
||||||
public Source(Workbook workbook)
|
public Source(Workbook workbook)
|
||||||
{
|
{
|
||||||
|
if (workbook == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentException($"Нет рабочего файла");
|
||||||
|
}
|
||||||
|
|
||||||
Sheet = workbook.ActiveSheet;
|
Sheet = workbook.ActiveSheet;
|
||||||
Name = workbook.Name;
|
Name = workbook.Name;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user