Usually, when a device receives messages this exception happens and leads to crashes.
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3614)
at android.app.ActivityThread.access$1300 (ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1798)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7073)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)
Caused by: java.lang.NullPointerException:
at io.flutter.embedding.engine.dart.DartExecutor$DartCallback.toString (DartExecutor.java:357)
at java.lang.String.valueOf (String.java:2896)
at java.lang.StringBuilder.append (StringBuilder.java:132)
at io.flutter.embedding.engine.dart.DartExecutor.executeDartCallback (DartExecutor.java:150)
at com.shounakmulay.telephony.sms.IncomingSmsHandler.startBackgroundIsolate (IncomingSmsHandler.kt:146)
at com.shounakmulay.telephony.sms.IncomingSmsReceiver.processInBackground (IncomingSmsHandler.kt:89)
at com.shounakmulay.telephony.sms.IncomingSmsReceiver.processIncomingSms (IncomingSmsHandler.kt:78)
at com.shounakmulay.telephony.sms.IncomingSmsReceiver.onReceive (IncomingSmsHandler.kt:48)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3605)
Usually, when a device receives messages this exception happens and leads to crashes.
java.lang.RuntimeException: at android.app.ActivityThread.handleReceiver (ActivityThread.java:3614) at android.app.ActivityThread.access$1300 (ActivityThread.java:238) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1798) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:214) at android.app.ActivityThread.main (ActivityThread.java:7073) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965) Caused by: java.lang.NullPointerException: at io.flutter.embedding.engine.dart.DartExecutor$DartCallback.toString (DartExecutor.java:357) at java.lang.String.valueOf (String.java:2896) at java.lang.StringBuilder.append (StringBuilder.java:132) at io.flutter.embedding.engine.dart.DartExecutor.executeDartCallback (DartExecutor.java:150) at com.shounakmulay.telephony.sms.IncomingSmsHandler.startBackgroundIsolate (IncomingSmsHandler.kt:146) at com.shounakmulay.telephony.sms.IncomingSmsReceiver.processInBackground (IncomingSmsHandler.kt:89) at com.shounakmulay.telephony.sms.IncomingSmsReceiver.processIncomingSms (IncomingSmsHandler.kt:78) at com.shounakmulay.telephony.sms.IncomingSmsReceiver.onReceive (IncomingSmsHandler.kt:48) at android.app.ActivityThread.handleReceiver (ActivityThread.java:3605)
and this is the screen in firebase crashlytics![Screenshot 2022-05-10 100646](https://user-images.githubusercontent.com/16141396/167568963-8faf6e5f-2422-417f-8b0c-38ed6b81cc99.png)