Null check intent before starting "learn more".

am: e56d2be0b2

Change-Id: I93aa097da0b6404dfbe279ee7d678e1f83a9ec93
This commit is contained in:
Andrew Sapperstein
2016-09-06 23:13:26 +00:00
committed by android-build-merger

View File

@@ -194,6 +194,10 @@ public class FingerprintEnrollIntroduction extends FingerprintEnrollBase
public void onClick(View widget) {
Context ctx = widget.getContext();
Intent intent = HelpUtils.getHelpIntent(ctx, getURL(), ctx.getClass().getName());
if (intent == null) {
Log.w(LearnMoreSpan.TAG, "Null help intent.");
return;
}
try {
// This needs to be startActivityForResult even though we do not care about the
// actual result because the help app needs to know about who invoked it.