[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
1 changed files with 6 additions and 3 deletions

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