Merge "Handle ArrayIndexOutOfBoundsException for install_sessions.xml" into udc-dev am: af7ef7eb00 am: dcb180d75f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23492099 Change-Id: I7985f08e86a73e12025ed0421e7c3728183987e9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -511,7 +511,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