diff --git a/tests/src/com/android/launcher3/allapps/PrivateProfileManagerTest.java b/tests/src/com/android/launcher3/allapps/PrivateProfileManagerTest.java index 8f398a66ff..2dcbda4ab6 100644 --- a/tests/src/com/android/launcher3/allapps/PrivateProfileManagerTest.java +++ b/tests/src/com/android/launcher3/allapps/PrivateProfileManagerTest.java @@ -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 {