Merge "Null check intent before starting "learn more"." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4e4e4ff19a
@@ -194,6 +194,10 @@ public class FingerprintEnrollIntroduction extends FingerprintEnrollBase
|
|||||||
public void onClick(View widget) {
|
public void onClick(View widget) {
|
||||||
Context ctx = widget.getContext();
|
Context ctx = widget.getContext();
|
||||||
Intent intent = HelpUtils.getHelpIntent(ctx, getURL(), ctx.getClass().getName());
|
Intent intent = HelpUtils.getHelpIntent(ctx, getURL(), ctx.getClass().getName());
|
||||||
|
if (intent == null) {
|
||||||
|
Log.w(LearnMoreSpan.TAG, "Null help intent.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
// This needs to be startActivityForResult even though we do not care about the
|
// 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.
|
// actual result because the help app needs to know about who invoked it.
|
||||||
|
Reference in New Issue
Block a user