Merge "Handle ArrayIndexOutOfBoundsException for install_sessions.xml" into udc-dev

This commit is contained in:
Alex Buynytskyy
2023-06-03 13:34:35 +00:00
committed by Android (Google) Code Review

View File

@@ -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);