Protecting against trying to launch apps that don't exist

BUG: 74083361

Change-Id: Ia0750bcca2534e794a81f094d5c214af4011c0ce
Test: Locally
This commit is contained in:
Kevin Neas
2018-03-12 17:36:23 -07:00
parent 9244c3aece
commit cb45b97a53

View File

@@ -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();