From e32e019bd30839b88758843364a364fe5e36f403 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Wed, 11 May 2022 15:53:57 +0530 Subject: [PATCH] AccountManager: properly check for null or empty accesstoken --- .../e/accountmanager/syncadapter/ContactsSyncManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/accountmanager/syncadapter/ContactsSyncManager.kt b/app/src/main/java/foundation/e/accountmanager/syncadapter/ContactsSyncManager.kt index ab87e5022..a4e0d0dcb 100644 --- a/app/src/main/java/foundation/e/accountmanager/syncadapter/ContactsSyncManager.kt +++ b/app/src/main/java/foundation/e/accountmanager/syncadapter/ContactsSyncManager.kt @@ -442,7 +442,7 @@ class ContactsSyncManager( .get() .url(httpUrl) - if (accessToken!!.isNotEmpty()) { + if (!accessToken.isNullOrEmpty()) { requestBuilder.header("Authorization", "Bearer $accessToken") } -- GitLab