Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4729d4dd authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE in UiAutomationManager" into main am: 6870708b

parents a7d1bd29 6870708b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -274,8 +274,10 @@ class UiAutomationManager {
            mMainHandler.post(() -> {
                try {
                    final IAccessibilityServiceClient serviceInterface;
                    final UiAutomationService uiAutomationService;
                    synchronized (mLock) {
                        serviceInterface = mServiceInterface;
                        uiAutomationService = mUiAutomationService;
                        if (serviceInterface == null) {
                            mService = null;
                        } else {
@@ -286,8 +288,8 @@ class UiAutomationManager {
                    // If the serviceInterface is null, the UiAutomation has been shut down on
                    // another thread.
                    if (serviceInterface != null) {
                        if (Flags.addWindowTokenWithoutLock()) {
                            mUiAutomationService.addWindowTokensForAllDisplays();
                        if (Flags.addWindowTokenWithoutLock() && uiAutomationService != null) {
                            uiAutomationService.addWindowTokensForAllDisplays();
                        }
                        if (mTrace.isA11yTracingEnabledForTypes(
                                AccessibilityTrace.FLAGS_ACCESSIBILITY_SERVICE_CLIENT)) {