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

Commit 04b20de2 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Don't crash on tear down of incompletely set up test

Bug: 207695009
Test: treehugger
Change-Id: If6bb738d3421120ab3e6ce9a8dff7425281cb82a
parent 3e218370
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();
    }