Protecting against trying to launch apps that don't exist
BUG: 74083361
Change-Id: Ia0750bcca2534e794a81f094d5c214af4011c0ce
Test: Locally
(cherry picked from commit cb45b97a53)
This commit is contained in:
committed by
Yuanlang Song
parent
4985fdef8b
commit
e87923c2df
@@ -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