Fixing a NPE in accessibility manager service.
There was a missing null checks as a result of a recent refactoring. bug:8185435 Change-Id: I3a1e256b434755b3a27f609dd2b6aeec31aa9a4f
This commit is contained in:
committed by
The Android Automerger
parent
03dde4b9e0
commit
ca42382f36
@@ -565,8 +565,9 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
UserState userState = getCurrentUserStateLocked();
|
||||
// Automation service is not bound, so pretend it died to perform clean up.
|
||||
if (userState.mUiAutomationService != null
|
||||
&& userState.mUiAutomationService.mServiceInterface != null
|
||||
&& serviceClient != null
|
||||
&& userState.mUiAutomationService != null
|
||||
&& userState.mUiAutomationService.mServiceInterface != null
|
||||
&& userState.mUiAutomationService.mServiceInterface.asBinder()
|
||||
== serviceClient.asBinder()) {
|
||||
userState.mUiAutomationService.binderDied();
|
||||
|
||||
Reference in New Issue
Block a user