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

Commit d808018b authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Automerger Merge Worker
Browse files

Don't crash on tear down of incompletely set up test am: 74261814 am: f6040c85

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1937677

Change-Id: I86e7c88ab4af574b53e09eba448dd209446fe948
parents 8d825a11 f6040c85
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -342,8 +342,10 @@ public class RILTest extends TelephonyTest {

    @After
    public void tearDown() throws Exception {
        if (mRILUnderTest != null) {
            mRILUnderTest.mWakeLock.release();
            mRILUnderTest.mAckWakeLock.release();
        }
        super.tearDown();
    }