Merge "Wrap StackOverflowError in NotFoundException. Bug: 67462465 Test: builds and tested using faulty apk with recursive drawable. Change-Id: I47691343dae892beb5ed8c1c66c33edefade321e" into oc-mr1-dev
am: 384689934d
Change-Id: Id4885fe270e24d54830d6858e37487de551a3f52
This commit is contained in:
@@ -796,7 +796,7 @@ public class ResourcesImpl {
|
|||||||
dr = Drawable.createFromResourceStream(wrapper, value, is, file, null);
|
dr = Drawable.createFromResourceStream(wrapper, value, is, file, null);
|
||||||
is.close();
|
is.close();
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception | StackOverflowError e) {
|
||||||
Trace.traceEnd(Trace.TRACE_TAG_RESOURCES);
|
Trace.traceEnd(Trace.TRACE_TAG_RESOURCES);
|
||||||
final NotFoundException rnf = new NotFoundException(
|
final NotFoundException rnf = new NotFoundException(
|
||||||
"File " + file + " from drawable resource ID #0x" + Integer.toHexString(id));
|
"File " + file + " from drawable resource ID #0x" + Integer.toHexString(id));
|
||||||
|
|||||||
Reference in New Issue
Block a user