Merge "InputMethodManagerServiceTestBase: make robust against setup failure" into udc-dev

This commit is contained in:
Adrian Roos
2023-03-10 16:04:18 +00:00
committed by Android (Google) Code Review

View File

@@ -240,7 +240,9 @@ public class InputMethodManagerServiceTestBase {
@After
public void tearDown() {
mInputMethodManagerService.mInputMethodDeviceConfigs.destroy();
if (mInputMethodManagerService != null) {
mInputMethodManagerService.mInputMethodDeviceConfigs.destroy();
}
if (mServiceThread != null) {
mServiceThread.quitSafely();