Files: thirdparty. Fix
This commit is contained in:
parent
fad1f8255c
commit
98eb263efd
@ -203,7 +203,10 @@ namespace ASC.Files.Thirdparty.Box
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Storage.Close();
|
||||
if (Storage != null)
|
||||
{
|
||||
Storage.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,10 @@ namespace ASC.Files.Thirdparty.OneDrive
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Storage.Close();
|
||||
if (Storage != null && Storage.IsOpened)
|
||||
{
|
||||
Storage.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,8 +169,10 @@ namespace ASC.Files.Thirdparty.Sharpbox
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (Storage.IsOpened)
|
||||
if (Storage != null && Storage.IsOpened)
|
||||
{
|
||||
Storage.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user