am 7f15b03d: Merge "Skip packages with missing metadata." into klp-dev

* commit '7f15b03d1636fefd6e02a3c89aa98e42483acdab':
  Skip packages with missing metadata.
This commit is contained in:
Jeff Sharkey
2013-09-03 12:07:26 -07:00
committed by Android Git Automerger

View File

@@ -1385,6 +1385,11 @@ final class Settings {
StringBuilder sb = new StringBuilder();
for (final PackageSetting pkg : mPackages.values()) {
if (pkg.pkg == null || pkg.pkg.applicationInfo == null) {
Slog.w(TAG, "Skipping " + pkg + " due to missing metadata");
continue;
}
final ApplicationInfo ai = pkg.pkg.applicationInfo;
final String dataPath = ai.dataDir;
final boolean isDebug = (ai.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;