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

Commit 4cb113ed authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Fix a NPE when shutting down instrumentation" into mnc-dev

parents 3c227bf2 a95f468d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -17152,8 +17152,10 @@ public final class ActivityManagerService extends ActivityManagerNative
        }
        // Can't call out of the system process with a lock held, so post a message.
        if (app.instrumentationUiAutomationConnection != null) {
            mHandler.obtainMessage(SHUTDOWN_UI_AUTOMATION_CONNECTION_MSG,
                    app.instrumentationUiAutomationConnection).sendToTarget();
        }
        app.instrumentationWatcher = null;
        app.instrumentationUiAutomationConnection = null;