Dispose if not null
This commit is contained in:
parent
0a7d9646f3
commit
75cb3c4f5d
@ -249,7 +249,7 @@ public class RhExcelWriter : IExcelWriter, IDisposable
|
|||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
_progressBar.Dispose();
|
_progressBar?.Dispose();
|
||||||
_resultBar.Dispose();
|
_resultBar?.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user