Firestore get the document but coroutine handler was called
So im using coroutine on my project, and im trying to get a firestore Document using coroutine await function. And after i got the document, the handler was called even when the job was success. Anyone can explain to me how to fix it?
Here is my code :
val handler = CoroutineExceptionHandler { _, exception ->
CoroutineScope(Dispatchers.Main).launch {
Log.e(TAG, "saveData: $exception")
saveData(mActivity)
}
}...