Crash when not have sender
Bug report
-
I checked if there wasn't a similar bug report or PR open to fix a similar bug -
I'm using the latest version of the app
Expected behavior
Show alert about a missing sender instead of crash.
Actual behavior
Crash
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content://com.android.contacts/data/emails } android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content://com.android.contacts/data/emails } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523) at android.app.Activity.startActivityForResult(Activity.java:4224) at androidx.f.a.e.startActivityForResult(SourceFile:767) at androidx.core.app.a.a(SourceFile:234) at androidx.f.a.e.startActivityFromFragment(SourceFile:886) at androidx.f.a.e$a.a(SourceFile:995) at androidx.f.a.d.startActivityForResult(SourceFile:1103) at androidx.f.a.d.startActivityForResult(SourceFile:1092) at org.dystopia.email.FragmentCompose$2.onClick(SourceFile:183) at android.view.View.performClick(View.java:5609) at android.view.View$PerformClick.run(View.java:22262) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Steps to reproduce the problem
1.Open the app 2.Compose a email 3.Try to send without sender