Fixing null check causing test breakage

Bug: 333609600
Test: Presubmit
Flag: None
Change-Id: Ic44df00ba945c79010c2cf99a034cca2b5d6c161
This commit is contained in:
Sunny Goyal committed 2024-04-09 17:04:46 -07:00
1 parent 3b00e7909a
commit efc3c46419
1 file changed
+2 -1
@@ -209,7 +209,8 @@ public class PrivateProfileManagerTest {
Mockito.verify(mContext).startActivity(acIntent.capture());
assertEquals("Intent Action is different",
expectedIntent.toUri(0), acIntent.getValue().toUri(0));
expectedIntent == null ? null : expectedIntent.toUri(0),
acIntent.getValue() == null ? null : acIntent.getValue().toUri(0));
}
private static void awaitTasksCompleted() throws Exception {