Closed Shailesh351 closed 4 years ago
@Shailesh351 My image file upload is failing with this error:
java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.nio.charset.Charset)' on a null object reference
at okhttp3.RequestBody.create(RequestBody.java:56)
at okhttp3.MultipartBody$Part.createFormData(MultipartBody.java:244)
at okhttp3.MultipartBody$Builder.addFormDataPart(MultipartBody.java:319)
at chat.rocket.core.internal.rest.MessageKt$uploadFile$4.invokeSuspend(Message.kt:283)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)
Any ideas? I'm trying to share an image from the download directory on the device (emulator)
Closes #496