Android - Self-Hosted account.get() "null cannot be cast to non-null type kotlin.Boolean"
- 0
- Self Hosted
- Auth
- Android
![](https://cdn.discordapp.com/embed/avatars/0.png)
Android (Kotlin) SDK 7.0.0, Self-hosted appwrite version 1.6.0
I'm using Google OAuth2 to log the user in. After they log in, I can see them in the Auth tab in Appwrite console, and they can read documents that only "Users" can read. A session is also created and used.
However, when i try to run account.get() on the same user that can read my database docs and has an active session, I get the following error:
java.lang.NullPointerException: null cannot be cast to non-null type kotlin.
at io.appwrite.models.Target$Companion.from(Target.kt:91)
at io.appwrite.models.User$Companion.from(User.kt:212)
at io.appwrite.services.Account$get$converter$1.invoke(Account.kt:41)
at io.appwrite.services.Account$get$converter$1.invoke(Account.kt:39)
at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:579)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
I saw a support ticket about what I think is a similar error in flutter, is that relevant? (https://discord.com/channels/564160730845151244/1334262870946611381) What's the workaround here?
Thanks a lot!
Recommended threads
- Cloudflare for SaaS not working correctl...
Heyo! My Appwrite is a SaaS hostname. Meaning CNAME's from other Cloudflare accounts properly work and each CNAME is a proxy. However due to this, custom domai...
- Sign-up error: how to get fix this appwr...
const submit = async () => { if (form.username === "" || form.email === "" || form.password === "") { Alert.alert("Error", "Please fill in all fields"...
- SSL renew failing
When i try to renew my SSL certificate i get the following error: ``` appwrite-worker-certificates | Cannot renew domain (appwrite.sundheds-tjek.dk) on attemp...
![](/images/bgs/pre-footer.png)