Dispose if not null

This commit is contained in:
Sergey Chebotar 2023-04-07 07:25:47 +03:00
parent 0a7d9646f3
commit 75cb3c4f5d

View File

@ -249,7 +249,7 @@ public class RhExcelWriter : IExcelWriter, IDisposable
public void Dispose() public void Dispose()
{ {
_progressBar.Dispose(); _progressBar?.Dispose();
_resultBar.Dispose(); _resultBar?.Dispose();
} }
} }