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

Skip to content
Commit 72e7950d authored by Colin Cross's avatar Colin Cross
Browse files

Fix NullPointerException in ControlsRequestDialogTest

When the @NonNull and @Nullable annotations are fixed to be class
retention it triggered an NullPointerException in ControlsRequestDialogTest:

08-25 00:58:09.852  1000 23910 23932 E TestRunner: java.lang.NullPointerException: eq(...) must not be null
08-25 00:58:09.852  1000 23910 23932 E TestRunner: 	at com.android.systemui.controls.management.ControlsRequestDialogTest.testDialogAddsCorrectControl(ControlsRequestDialogTest.kt:138)

com.android.systemui.util.mockito.eq should probably be replaced with
org.mockito.kotlin.eq, but for now just copy org.mockito.kotlin.eq
by adding "?: obj".

Bug: 294110802
Test: atest SystemUITests
Change-Id: Ia3a06575fdad99c8fe3811d64a5879d3dabe854e
Merged-In: Ia3a06575fdad99c8fe3811d64a5879d3dabe854e
(cherry picked from commit 00039da3)
parent eb1f7927
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment