N
N
nuclear_kote2020-03-29 02:32:33
Android
nuclear_kote, 2020-03-29 02:32:33

Why does the call application crash when a call is rejected?

Using cordova plugin https://github.com/WebsiteBeaver/CordovaCall
On samsung s9+ and android 10 NPE crashes when trying to reject a call

in logcat:

--------- beginning of crash
03-29 00:10:26.336 30640 30640 E AndroidRuntime: FATAL EXCEPTION: main
03-29 00:10:26.336 30640 30640 E AndroidRuntime: Process: com.samsung.android.incallui, PID: 30640
03-29 00:10:26.336 30640 30640 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Bundle.putBoolean(java.lang.String, boolean)' on a null object reference
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.incallui.modelimpl.call.CallModelImpl.reject(CallModelImpl.java:630)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.incallui.viewmodelimpl.executor.button.DisconnectExecutorImpl.disconnect(DisconnectExecutorImpl.java:64)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.incallui.viewmodelimpl.executor.button.DisconnectExecutorImpl.lambda$SUcCQ-SptSrU9cT9P2o0VJmtSD8(Unknown Source:0)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.incallui.viewmodelimpl.executor.button.-$$Lambda$DisconnectExecutorImpl$SUcCQ-SptSrU9cT9P2o0VJmtSD8.accept(Unknown Source:4)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at java.util.Optional.ifPresent(Optional.java:155)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.incallui.viewmodelimpl.executor.button.DisconnectExecutorImpl.executeDisconnect(DisconnectExecutorImpl.java:52)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.incallui.viewmodelimpl.ui.-$$Lambda$7GCk5mWRuQxkBBIBni_wPhMXW4A.accept(Unknown Source:2)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at java.util.Optional.ifPresent(Optional.java:155)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.incallui.viewmodelimpl.ui.ActionCommandUiImpl.onRejectCall(ActionCommandUiImpl.java:944)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.incallui.view.popupscreen.CallPopupAnswerViewImpl.onClick(CallPopupAnswerViewImpl.java:229)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at android.view.View.performClick(View.java:7870)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at android.view.View.performClickInternal(View.java:7839)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at android.view.View.access$3600(View.java:886)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at android.view.View$PerformClick.run(View.java:29363)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:883)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:100)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:237)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7811)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
03-29 00:10:26.336 30640 30640 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question