shounakmulay / Telephony

Flutter plugin for telephony features like query device sms directory, listen for incoming messages, retrieve various network parameters, etc.
https://telephony.shounakmulay.dev
MIT License
138 stars 126 forks source link

java.lang.RuntimeException that leads to crashes #139

Open Khawlah-Mohammed opened 2 years ago

Khawlah-Mohammed commented 2 years ago

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

Nlbnt03 commented 1 year ago

did you find the solution to this problem ?