-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
👟 Reproduction steps
suspend fun incrementCustomerCount(ownerRowId: String) {
try {
tables.incrementRowColumn(
databaseId,
ownerTable,
ownerRowId,
"customer_count",
nestedType = Map::class.java
)
} catch (e: AppwriteException) {
throw e
}
}
when call this one : customerService.incrementCustomerCount("row id ")
👍 Expected behavior
in backend it increment the value of column
👎 Actual Behavior
but at the end, the application gets crushed and give this log
E FATAL EXCEPTION: OkHttp Dispatcher
Process: com.xyz.owner, PID: 8823
java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String
at io.appwrite.models.Row$Companion.from(Row.kt:97)
at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDb.kt:751)
at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDb.kt:749)
at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:602)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at java.lang.Thread.run(Thread.java:1119)
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Windows
🧱 Your Environment
11.3.0
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels