Merge "Fix null pointer exception on bubbles test"

This commit is contained in:
TreeHugger Robot
2022-07-29 13:10:28 +00:00
committed by Android (Google) Code Review

View File

@@ -75,7 +75,7 @@ open class MultiBubblesScreen(testSpec: FlickerTestParameter) : BaseBubbleScreen
Until.findObjects(
By.res(SYSTEM_UI_PACKAGE, BUBBLE_RES_NAME)
), FIND_OBJECT_TIMEOUT
)
) ?: error("No bubbles found")
for (entry in bubbles) {
entry?.run { entry.click() } ?: error("Bubble not found")
SystemClock.sleep(1000)