SyncManager: handle stoken being null (empty collection).

pull/131/head
Tom Hacohen 4 years ago
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…
Cancel
Save