Adamantcheese / Kuroba

Kuroba - imageboard browser for Android
GNU General Public License v3.0
392 stars 29 forks source link

App crashes when posting to Vichan site #1408

Closed ghost closed 1 year ago

ghost commented 1 year ago

Happens on both Lainchan and Sushichan

E/Kuroba-dev | UNCAUGHT: Unhandled exception:
E/Kuroba-dev | UNCAUGHT: java.lang.IllegalStateException: Multipart body must have at least one part.
E/Kuroba-dev | UNCAUGHT:    at okhttp3.MultipartBody$Builder.build(MultipartBody.kt:277)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.core.site.common.MultipartHttpCall.setup(MultipartHttpCall.java:72)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.core.net.NetUtils.makeHttpCall(NetUtils.java:147)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.core.net.NetUtils.makeHttpCall(NetUtils.java:133)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.core.site.common.CommonSite$CommonApi.post(CommonSite.java:409)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.core.presenter.ReplyPresenter.makeSubmitCall(ReplyPresenter.java:519)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.core.presenter.ReplyPresenter.submitOrAuthenticate(ReplyPresenter.java:235)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.core.presenter.ReplyPresenter.onSubmitClicked(ReplyPresenter.java:228)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.ui.layout.ReplyLayout.lambda$onFinishInflate$11(ReplyLayout.java:296)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.ui.layout.ReplyLayout.$r8$lambda$kI1q2yZ1mpGC7i8nNt8zsq7_IQw(Unknown Source:0)
E/Kuroba-dev | UNCAUGHT:    at com.github.adamantcheese.chan.ui.layout.ReplyLayout$$ExternalSyntheticLambda7.onClick(Unknown Source:2)
E/Kuroba-dev | UNCAUGHT:    at android.view.View.performClick(View.java:7792)
E/Kuroba-dev | UNCAUGHT:    at android.view.View.performClickInternal(View.java:7769)
E/Kuroba-dev | UNCAUGHT:    at android.view.View.access$3800(View.java:910)
E/Kuroba-dev | UNCAUGHT:    at android.view.View$PerformClick.run(View.java:30218)
E/Kuroba-dev | UNCAUGHT:    at android.os.Handler.handleCallback(Handler.java:938)
E/Kuroba-dev | UNCAUGHT:    at android.os.Handler.dispatchMessage(Handler.java:99)
E/Kuroba-dev | UNCAUGHT:    at android.os.Looper.loopOnce(Looper.java:226)
E/Kuroba-dev | UNCAUGHT:    at android.os.Looper.loop(Looper.java:313)
E/Kuroba-dev | UNCAUGHT:    at android.app.ActivityThread.main(ActivityThread.java:8751)
E/Kuroba-dev | UNCAUGHT:    at java.lang.reflect.Method.invoke(Native Method)
E/Kuroba-dev | UNCAUGHT:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
E/Kuroba-dev | UNCAUGHT:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
E/Kuroba-dev | UNCAUGHT: ------------------------------
E/Kuroba-dev | UNCAUGHT: END OF CURRENT RUNTIME MESSAGES
E/Kuroba-dev | UNCAUGHT: ------------------------------
E/Kuroba-dev | UNCAUGHT: Android API Level: 31
E/Kuroba-dev | UNCAUGHT: App Version: Kuroba-dev/v4.13.6-643c5ece
E/Kuroba-dev | UNCAUGHT: Phone Model: samsung SM-S908E