It is possible in certain build configurations to have an invalid
link. Instead of crashing, swallow the error and write to logs.
Fixes:
64322876
Test: manual - go to Settings > Security & Location > Fingerprint
and then tap "Learn more"
Change-Id: I70beca880261df0ee3eef94f5469f44130ffd95a
};
private static class LearnMoreSpan extends URLSpan {
-
+ private static final String TAG = "LearnMoreSpan";
private static final Typeface TYPEFACE_MEDIUM =
Typeface.create("sans-serif-medium", Typeface.NORMAL);
RestrictedLockUtils.sendShowAdminSupportDetailsIntent(ctx, mEnforcedAdmin);
} else {
Intent intent = HelpUtils.getHelpIntent(ctx, getURL(), ctx.getClass().getName());
+ if (intent == null) {
+ Log.w(LearnMoreSpan.TAG, "Null help intent.");
+ return;
+ }
try {
widget.startActivityForResult(intent, 0);
} catch (ActivityNotFoundException e) {