Commit 8bba0450 authored by Andrew Grieve's avatar Andrew Grieve Committed by Chromium LUCI CQ

Android: Fix crash in PiiElider.isClassName()

There are several kinds of exceptions that can occur when loading
classes.

Bug: 1156583
Change-Id: I8440a21ab1146e9f50a9f389c2e6d32f46330237
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2579953
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Commit-Queue: Richard Coles <torne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#835329}
parent 0e378432
......@@ -130,7 +130,8 @@ public class PiiElider {
try {
Class.forName(url, false, ContextUtils.getApplicationContext().getClassLoader());
return true;
} catch (ClassNotFoundException e) {
} catch (Throwable e) {
// Some examples: ClassNotFoundException, NoClassDefFoundException, VerifyError.
}
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment