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

Commit c436b9f5 authored by Ben Reich's avatar Ben Reich
Browse files

Don't close mActivityScenario when null

A previous CL overrode the `launchActivity` method, unfortunately due to
the sequencing of Junit, the @Before method of setUp in
ActivityTestJunit4 is ran which calls the `launchActivity` method. When
the overrode method is called it fails the assumption and bails early,
this didn't end up assigning anything to the mActivityScenario member
variable. The tearDown is always ran and as a result the
mActivityScenario!!.close() method was failing with a null reference
error.

Bug: 410436015
Test: atest DocumentsUIGoogleTests:com.android.documentsui.NavRailUiTest
Flag: com.android.documentsui.flags.use_material3
Change-Id: I1efd7a3bd57e0f69e651a4f9b2d6956a958c3b80
parent 7187460e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment