NullPointerException occurring when calling account.createEmailPasswordSession()
- 0
- Android
- Auth
- Cloud

Android SDK version 5.0.0 Creating session with by email and password gives NullPointerException
FATAL EXCEPTION: OkHttp Dispatcher Process: com.anshtya.myhub, PID: 13693 java.lang.NullPointerException: null cannot be cast to non-null type kotlin.collections.List<kotlin.Any> at io.appwrite.models.Session$Companion.from(Session.kt:241) at io.appwrite.services.Account$createEmailPasswordSession$converter$1.invoke(Account.kt:1155) at io.appwrite.services.Account$createEmailPasswordSession$converter$1.invoke(Account.kt:1153) at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:541) 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)
In SDK version 4.0.0 session got created without any errors.
Recommended threads
- Looking for Partner
I'm looking for partner for long-term collaborating. Of course, I'll pay for you. If you are interested, Please DM me.
- Issue - Migration From Cloud > Self Host...
Hi team, I’m trying to migrate a few of my Appwrite projects from the cloud to a self-hosted instance. These projects are currently in “archive mode” due to th...
- Why "You’ve reached the limit for your G...
Why did Appwrite send me this alert when the usage reached 10605%? Is it too late? Why not when reached 100% usage? And I can not pay for more usage described ...
