From cf79707a6248eb797ac855a95515011418e382ce Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Mon, 11 Sep 2023 19:30:35 +0530 Subject: [PATCH] pass blank authdata instead of null --- .../java/foundation/e/apps/data/preference/DataStoreManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/apps/data/preference/DataStoreManager.kt b/app/src/main/java/foundation/e/apps/data/preference/DataStoreManager.kt index 4294505ae..8bd36cbfe 100644 --- a/app/src/main/java/foundation/e/apps/data/preference/DataStoreManager.kt +++ b/app/src/main/java/foundation/e/apps/data/preference/DataStoreManager.kt @@ -33,7 +33,7 @@ class DataStoreManager @Inject constructor() { fun getAuthData(): AuthData { val authDataJson = dataStoreModule.getAuthDataSync() - return gson.fromJson(authDataJson, AuthData::class.java) + return gson.fromJson(authDataJson, AuthData::class.java) ?: AuthData("", "") } fun getUserType(): User { -- GitLab