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

Commit 8cdc827f authored by Adrian Roos's avatar Adrian Roos
Browse files

InputMethodManagerServiceTestBase: make robust against setup failure

Fixes an issue where if setup fails, teardown will throw an NPE and
hide the real issue.

Bug: 272633154
Change-Id: I16f5c6d90720f3845a7da5229de3537c9a9dc668
Test: n/a
parent b2c6c792
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -240,7 +240,9 @@ public class InputMethodManagerServiceTestBase {

    @After
    public void tearDown() {
        if (mInputMethodManagerService != null) {
            mInputMethodManagerService.mInputMethodDeviceConfigs.destroy();
        }

        if (mServiceThread != null) {
            mServiceThread.quitSafely();