Commit 8dd0cee 1 parent b76f720 commit 8dd0cee Copy full SHA for 8dd0cee
File tree 2 files changed +3
-1
lines changed
app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import kotlinx.coroutines.async
17
17
import kotlinx.coroutines.awaitAll
18
18
import kotlinx.coroutines.coroutineScope
19
19
import kotlinx.coroutines.flow.Flow
20
+ import kotlinx.coroutines.flow.filterNotNull
20
21
import kotlinx.coroutines.flow.first
21
22
import kotlinx.coroutines.flow.map
22
23
import kotlinx.coroutines.flow.merge
@@ -124,6 +125,7 @@ class VaultDiskSourceImpl(
124
125
override fun getDomains (userId : String ): Flow <SyncResponseJson .Domains > =
125
126
domainsDao
126
127
.getDomains(userId)
128
+ .filterNotNull()
127
129
.map { entity ->
128
130
withContext(dispatcherManager.default) {
129
131
json.decodeFromString<SyncResponseJson .Domains >(entity.domainsJson)
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ interface DomainsDao {
25
25
@Query(" SELECT * FROM domains WHERE user_id = :userId" )
26
26
fun getDomains (
27
27
userId : String ,
28
- ): Flow <DomainsEntity >
28
+ ): Flow <DomainsEntity ? >
29
29
30
30
/* *
31
31
* Inserts domains into the database.
You can’t perform that action at this time.
0 commit comments