1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

[KOE-24] Added null check for folder id in stall detection

This commit is contained in:
Patrick Simpson 2017-06-08 09:31:01 +02:00
parent 4e91672227
commit 862e0ddd04

View File

@ -500,9 +500,12 @@ namespace Acacia.Features.SyncState
// Check if the folder has synced. In that case, it's not stalled.
string folderId = (string)inbox.GetProperty(OutlookConstants.PR_ZPUSH_FOLDER_ID);
SyncSession sync = account.GetFeatureData<SyncSession>(this, null);
if (sync.HasFolderSynced(folderId))
return;
if (folderId != null)
{
SyncSession sync = account.GetFeatureData<SyncSession>(this, null);
if (sync.HasFolderSynced(folderId))
return;
}
}
// It is not syncing, check for a stall