Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60ff11dc authored by Fred Quintana's avatar Fred Quintana
Browse files

fix an npe when a user tries to get an auth token from an authenticator that...

fix an npe when a user tries to get an auth token from an authenticator that doesn't support it, like exchange
parent b4c20fca
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.view.ViewGroup;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import com.android.internal.R;

/**
@@ -59,7 +60,7 @@ public class GrantCredentialsPermissionActivity extends Activity implements View

        TextView messageView = (TextView) getWindow().findViewById(R.id.message);
        String authTokenLabel = getIntent().getExtras().getString(EXTRAS_AUTH_TOKEN_LABEL);
        if (authTokenLabel.length() == 0) {
        if (TextUtils.isEmpty(authTokenLabel)) {
            CharSequence grantCredentialsPermissionFormat = getResources().getText(
                    R.string.grant_credentials_permission_message_desc);
            messageView.setText(String.format(grantCredentialsPermissionFormat.toString(),