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

Commit 1e2d6245 authored by Jeff Chen's avatar Jeff Chen
Browse files

Avoid un-registration when mRealInstrumentation is null.

bug: 259957834
Test: http://ab/I62800010122127541
Change-Id: Ibf43986b2aba6542c20551e9414f1471ec81215a
parent c75d47d4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -132,8 +132,10 @@ public abstract class SysuiTestCase {

    @After
    public void SysuiTeardown() {
        if (mRealInstrumentation != null) {
            InstrumentationRegistry.registerInstance(mRealInstrumentation,
                    InstrumentationRegistry.getArguments());
        }
        if (TestableLooper.get(this) != null) {
            TestableLooper.get(this).processAllMessages();
            // Must remove static reference to this test object to prevent leak (b/261039202)