WebsiteBeaver / CordovaCall

Cordova CallKit & ConnectionService plugin for iOS/Android that displays the native call UI for VOIP apps
MIT License
196 stars 92 forks source link

Application crash problem on Android #109

Open mozhn opened 3 years ago

mozhn commented 3 years ago

Hello, I've been getting complaints from our users ever since I started using this plugin. When I investigated the problem a bit, I found the errors and devices received during the crash. I share a few examples below. I hope I can get some support in this regard.

Android 10 (SDK 29) (Samsung Galaxy S10+)

java.lang.NullPointerException: 
  at android.net.Uri$StringUri.<init> (Uri.java:496)
  at android.net.Uri$StringUri.<init> (Uri.java:486)
  at android.net.Uri.parse (Uri.java:458)
  at com.dmarc.cordovacall.MyConnectionService.onCreateOutgoingConnection (MyConnectionService.java:167)
  at android.telecom.ConnectionService.createConnection (ConnectionService.java:1572)
  at android.telecom.ConnectionService.access$400 (ConnectionService.java:91)
  at android.telecom.ConnectionService$2.handleMessage (ConnectionService.java:734)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:8167)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)

Android 9 (SDK 28) (Samsung Galaxy A30)

java.lang.NullPointerException: 
  at android.net.Uri$StringUri.<init> (Uri.java:490)
  at android.net.Uri$StringUri.<init> (Uri.java:480)
  at android.net.Uri.parse (Uri.java:452)
  at com.dmarc.cordovacall.MyConnectionService.onCreateOutgoingConnection (MyConnectionService.java:166)
  at android.telecom.ConnectionService.createConnection (ConnectionService.java:1532)
  at android.telecom.ConnectionService.access$400 (ConnectionService.java:91)
  at android.telecom.ConnectionService$2.handleMessage (ConnectionService.java:734)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7099)
  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)

Android 9 (SDK 28) (Redmi Note 8)

java.lang.NullPointerException: 
  at android.net.Uri$StringUri.<init> (Uri.java:490)
  at android.net.Uri$StringUri.<init> (Uri.java:480)
  at android.net.Uri.parse (Uri.java:452)
  at com.dmarc.cordovacall.MyConnectionService.onCreateOutgoingConnection (MyConnectionService.java:167)
  at android.telecom.ConnectionService.createConnection (ConnectionService.java:1553)
  at android.telecom.ConnectionService.access$400 (ConnectionService.java:88)
  at android.telecom.ConnectionService$2$1.loggedRun (ConnectionService.java:730)
  at android.telecom.Logging.Runnable$1.run (Runnable.java:37)
  at android.telecom.ConnectionService.onAccountsInitialized (ConnectionService.java:2488)
  at android.telecom.ConnectionService.access$4100 (ConnectionService.java:88)
  at android.telecom.ConnectionService$5$1.loggedRun (ConnectionService.java:1950)
  at android.telecom.Logging.Runnable$1.run (Runnable.java:37)
  at android.os.Handler.handleCallback (Handler.java:873)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:201)
  at android.app.ActivityThread.main (ActivityThread.java:6864)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:547)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:873)