Commit e32e019b authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

AccountManager: properly check for null or empty accesstoken

parent c840b23d
Pipeline #184766 passed with stage
in 6 minutes and 12 seconds
......@@ -442,7 +442,7 @@ class ContactsSyncManager(
.get()
.url(httpUrl)
if (accessToken!!.isNotEmpty()) {
if (!accessToken.isNullOrEmpty()) {
requestBuilder.header("Authorization", "Bearer $accessToken")
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment