nuclear_kote
@nuclear_kote

Почему крашится call приложение при отклонении звонка?

Использую плагин кордовы https://github.com/WebsiteBeaver/CordovaCall
На samsung s9+ и android 10 вылетает NPE при попытке отклонить звонок

в логкате :
--------- 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
  • Вопрос задан
  • 23 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
ДомКлик Москва
от 120 000 до 260 000 ₽
Drum Pads 24 Ульяновск
от 90 000 до 160 000 ₽
C.Nord Санкт-Петербург
от 100 000 ₽