1
0
mirror of https://github.com/etesync/android synced 2025-05-14 21:08:49 +00:00

SyncManager: handle stoken being null (empty collection).

This commit is contained in:
Tom Hacohen 2020-08-27 15:43:29 +03:00
parent 52b7a84a1a
commit 481dcc1944

View File

@ -242,8 +242,10 @@ constructor(protected val context: Context, protected val account: Account, prot
applyRemoteItems(itemList) applyRemoteItems(itemList)
stoken = itemList.stoken stoken = itemList.stoken
synchronized(etebaseLocalCache) { if (stoken != null) {
etebaseLocalCache.collectionSaveStoken(cachedCollection.col.uid, stoken!!) synchronized(etebaseLocalCache) {
etebaseLocalCache.collectionSaveStoken(cachedCollection.col.uid, stoken)
}
} }
} while (!itemList!!.isDone) } while (!itemList!!.isDone)
} }