Add logging to help track down a bug causing invalid credentials
b/13640564
Change-Id: I1161764e1278375eb786689a11e6899e8363fc8b
(cherry picked from commit 5419284715
)
This commit is contained in:
parent
41e3f37b50
commit
7c8eee40c1
@ -6,8 +6,10 @@ import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.android.emailcommon.utility.Utility;
|
||||
import com.android.mail.utils.LogUtils;
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
public class Credential extends EmailContent implements Parcelable {
|
||||
@ -154,6 +156,9 @@ public class Credential extends EmailContent implements Parcelable {
|
||||
@Override
|
||||
public ContentValues toContentValues() {
|
||||
ContentValues values = new ContentValues();
|
||||
if (TextUtils.isEmpty(mProviderId)) {
|
||||
LogUtils.e(LogUtils.TAG, new Throwable(), "Credential being saved with no provider");
|
||||
}
|
||||
values.put(PROVIDER_COLUMN, mProviderId);
|
||||
values.put(ACCESS_TOKEN_COLUMN, mAccessToken);
|
||||
values.put(REFRESH_TOKEN_COLUMN, mRefreshToken);
|
||||
|
Loading…
Reference in New Issue
Block a user