1
0
mirror of https://github.com/etesync/android synced 2024-12-23 07:08:16 +00:00

SyncAdapter: fix crash when syncing empty accounts.

This commit is contained in:
Tom Hacohen 2020-09-08 10:47:28 +03:00
parent 2eeee1214f
commit b11ece37d5

View File

@ -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
}