Snap for 4399706 from 467361dbcf to pi-release

Change-Id: Ibd977e2cf7a6628e298f3c02714f9fb8dcc171a7
This commit is contained in:
android-build-team Robot
2017-10-17 08:08:28 +00:00

View File

@@ -58,10 +58,10 @@ public class GifImageResource extends ImageResource {
public Drawable getDrawable(Resources resources) {
try {
return new FrameSequenceDrawable(mFrameSequence);
} catch (final Exception e) {
// Malicious gif images can make platform throw different kind of exceptions. Catch
// them all.
LogUtil.e(LogUtil.BUGLE_TAG, "Error getting drawable for GIF", e);
} catch (final Throwable t) {
// Malicious gif images can make the platform throw different kind of throwables, such
// as OutOfMemoryError and NullPointerException. Catch them all.
LogUtil.e(LogUtil.BUGLE_TAG, "Error getting drawable for GIF", t);
return null;
}
}