Merge "Add null check to embeddedAllowed check" into klp-modular-dev

This commit is contained in:
Craig Mautner
2014-05-05 20:55:48 +00:00
committed by Android (Google) Code Review

View File

@@ -3068,7 +3068,7 @@ public final class ActivityStackSupervisor implements DisplayListener {
}
}
ActivityInfo aInfo = resolveActivity(intent, resolvedType, 0, null, null, userId);
if ((aInfo.flags & ActivityInfo.FLAG_ALLOW_EMBEDDED) == 0) {
if (aInfo != null && (aInfo.flags & ActivityInfo.FLAG_ALLOW_EMBEDDED) == 0) {
throw new SecurityException(
"Attempt to embed activity that has not set allowEmbedded=\"true\"");
}