commit | efc3c4641946804ceabff44f78bc38230d0e2a55 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Tue Apr 09 17:03:43 2024 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Tue Apr 09 17:04:46 2024 -0700 |
tree | c1d7fdb7454c6d87d8cb6a238a12e09ce9e1ead4 | |
parent | 3b00e7909af42b862475bdc8f986d2a7a287faea [diff] |
Fixing null check causing test breakage Bug: 333609600 Test: Presubmit Flag: None Change-Id: Ic44df00ba945c79010c2cf99a034cca2b5d6c161
diff --git a/tests/src/com/android/launcher3/allapps/PrivateProfileManagerTest.java b/tests/src/com/android/launcher3/allapps/PrivateProfileManagerTest.java index 8f398a6..2dcbda4 100644 --- a/tests/src/com/android/launcher3/allapps/PrivateProfileManagerTest.java +++ b/tests/src/com/android/launcher3/allapps/PrivateProfileManagerTest.java
@@ -209,7 +209,8 @@ 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 {