commit | 021a0ee8ff8077a27e0bf4efa8d3e3f7bf942d63 | [log] [tgz] |
---|---|---|
author | Brad Ebinger <breadley@google.com> | Mon Sep 11 21:10:22 2023 +0000 |
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Mon Sep 11 21:10:22 2023 +0000 |
tree | e5d70ff0da520ee4bfafa61dafc94100b50303d4 | |
parent | 00d8af855ea98547756497acf18692c781a217e4 [diff] |
Fix ConnectionServiceFocusManager NPE Bug: 294008627 Check for null Binder before calling focusmanager notification APIs Bug: 294047434 Test: Unit Tests, OEM manual stress tests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c5ec887f5ec6d76a97c1598ea0c2bf3794b1dab1) Merged-In: I62c6e6b75ab691ca8057f8151acacf6623fe53f9 Change-Id: I62c6e6b75ab691ca8057f8151acacf6623fe53f9
diff --git a/src/com/android/server/telecom/ConnectionServiceWrapper.java b/src/com/android/server/telecom/ConnectionServiceWrapper.java old mode 100755 new mode 100644 index 5bb1dbe..7237c70 --- a/src/com/android/server/telecom/ConnectionServiceWrapper.java +++ b/src/com/android/server/telecom/ConnectionServiceWrapper.java
@@ -2066,6 +2066,7 @@ BindCallback callback = new BindCallback() { @Override public void onSuccess() { + if (!isServiceValid("connectionServiceFocusLost")) return; try { mServiceInterface.connectionServiceFocusLost( Log.getExternalSession(TELECOM_ABBREVIATION)); @@ -2085,6 +2086,7 @@ BindCallback callback = new BindCallback() { @Override public void onSuccess() { + if (!isServiceValid("connectionServiceFocusGained")) return; try { mServiceInterface.connectionServiceFocusGained( Log.getExternalSession(TELECOM_ABBREVIATION));