Protecting against trying to launch apps that don't exist
BUG: 74083361 Change-Id: Ia0750bcca2534e794a81f094d5c214af4011c0ce Test: Locally
This commit is contained in:
@@ -229,6 +229,9 @@ public class AppLaunch extends InstrumentationTestCase {
|
||||
setLaunchOrder();
|
||||
|
||||
for (LaunchOrder launch : mLaunchOrderList) {
|
||||
if (mNameToIntent.get(launch.getApp()) == null) {
|
||||
continue;
|
||||
}
|
||||
dropCache();
|
||||
String appPkgName = mNameToIntent.get(launch.getApp())
|
||||
.getComponent().getPackageName();
|
||||
|
||||
Reference in New Issue
Block a user