SyncAdapter: fix crash when syncing empty accounts.

pull/131/head
Tom Hacohen 4 years ago
parent 2eeee1214f
commit b11ece37d5

@ -270,7 +270,9 @@ abstract class SyncAdapterService : Service() {
stoken = colList.stoken
done = colList.isDone
etebaseLocalCache.saveStoken(stoken!!)
if (stoken != null) {
etebaseLocalCache.saveStoken(stoken)
}
}
collectionLastFetchMap[account.name] = now
}

Loading…
Cancel
Save