Files: thirdparty. Fix

This commit is contained in:
pavelbannov 2020-03-17 17:47:39 +03:00
parent fad1f8255c
commit 98eb263efd
3 changed files with 11 additions and 3 deletions

View File

@ -203,7 +203,10 @@ namespace ASC.Files.Thirdparty.Box
public void Dispose()
{
Storage.Close();
if (Storage != null)
{
Storage.Close();
}
}
}

View File

@ -179,7 +179,10 @@ namespace ASC.Files.Thirdparty.OneDrive
public void Dispose()
{
Storage.Close();
if (Storage != null && Storage.IsOpened)
{
Storage.Close();
}
}
}

View File

@ -169,8 +169,10 @@ namespace ASC.Files.Thirdparty.Sharpbox
public void Dispose()
{
if (Storage.IsOpened)
if (Storage != null && Storage.IsOpened)
{
Storage.Close();
}
}
}