mirror of
https://github.com/etesync/android
synced 2025-02-22 04:22:11 +00:00
SyncManager: handle stoken being null (empty collection).
This commit is contained in:
parent
52b7a84a1a
commit
481dcc1944
@ -242,8 +242,10 @@ constructor(protected val context: Context, protected val account: Account, prot
|
||||
applyRemoteItems(itemList)
|
||||
|
||||
stoken = itemList.stoken
|
||||
synchronized(etebaseLocalCache) {
|
||||
etebaseLocalCache.collectionSaveStoken(cachedCollection.col.uid, stoken!!)
|
||||
if (stoken != null) {
|
||||
synchronized(etebaseLocalCache) {
|
||||
etebaseLocalCache.collectionSaveStoken(cachedCollection.col.uid, stoken)
|
||||
}
|
||||
}
|
||||
} while (!itemList!!.isDone)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user