Merge "Handle ArrayIndexOutOfBoundsException for install_sessions.xml" into main
This commit is contained in:
@@ -482,7 +482,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
|
|||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
// Missing sessions are okay, probably first boot
|
// Missing sessions are okay, probably first boot
|
||||||
} catch (IOException | XmlPullParserException e) {
|
} catch (IOException | XmlPullParserException | ArrayIndexOutOfBoundsException e) {
|
||||||
Slog.wtf(TAG, "Failed reading install sessions", e);
|
Slog.wtf(TAG, "Failed reading install sessions", e);
|
||||||
} finally {
|
} finally {
|
||||||
IoUtils.closeQuietly(fis);
|
IoUtils.closeQuietly(fis);
|
||||||
|
|||||||
Reference in New Issue
Block a user