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

Commit cec53fe4 authored by Dmitry Dementyev's avatar Dmitry Dementyev Committed by android-build-merger
Browse files

Merge "Check that Account Parcel has name and type." into qt-dev

am: cdec7936

Change-Id: I122ada23d505ee08424d83a623b236d3b64f6463
parents 0b49f5d2 cdec7936
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -93,6 +93,12 @@ public class Account implements Parcelable {
    public Account(Parcel in) {
        this.name = in.readString();
        this.type = in.readString();
        if (TextUtils.isEmpty(name)) {
            throw new android.os.BadParcelableException("the name must not be empty: " + name);
        }
        if (TextUtils.isEmpty(type)) {
            throw new android.os.BadParcelableException("the type must not be empty: " + type);
        }
        this.accessId = in.readString();
        if (accessId != null) {
            synchronized (sAccessedAccounts) {