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 ab87e50227f6c185f002f3f0472d3e49763a42b9..a4e0d0dcbec3e46b17fd38b71d32c66c639f9689 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") }