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

Commit ac1dc128 authored by Colin Cross's avatar Colin Cross Committed by Automerger Merge Worker
Browse files

Fix NullPointerException in ControlsRequestDialogTest am: 72e7950d am: 6b6df8dc

parents befddd5a 6b6df8dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ import org.mockito.stubbing.Stubber
 *
 * Generic T is nullable because implicitly bounded by Any?.
 */
fun <T> eq(obj: T): T = Mockito.eq<T>(obj)
fun <T> eq(obj: T): T = Mockito.eq<T>(obj) ?: obj

/**
 * Returns Mockito.any() as nullable type to avoid java.lang.IllegalStateException when