Merge "Handle ArrayIndexOutOfBoundsException for install_sessions.xml" into main

This commit is contained in:
Treehugger Robot
2023-07-20 05:31:06 +00:00
committed by Gerrit Code Review

View File

@@ -482,7 +482,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
}
} catch (FileNotFoundException e) {
// Missing sessions are okay, probably first boot
} catch (IOException | XmlPullParserException e) {
} catch (IOException | XmlPullParserException | ArrayIndexOutOfBoundsException e) {
Slog.wtf(TAG, "Failed reading install sessions", e);
} finally {
IoUtils.closeQuietly(fis);