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

Commit 9aa45d92 authored by Roman Birg's avatar Roman Birg
Browse files

Contacts: fix contact account check type NPE



Change-Id: Ice03a2ffca7bb226493d687cc2702f03968e00a0
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 23e847ae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -718,7 +718,9 @@ public class ContactEditorFragment extends Fragment implements
        currentAccountTpye = newAccount.type;

        //Remove photo when change account to Sim.
        if (oldAccountType.accountType.equals(PhoneAccountType.ACCOUNT_TYPE) ||
        if (oldAccountType == null ||
                oldAccountType.accountType == null ||
                oldAccountType.accountType.equals(PhoneAccountType.ACCOUNT_TYPE) ||
                oldAccountType.accountType.equals(GoogleAccountType.ACCOUNT_TYPE) ||
                oldAccountType.accountType.equals(ExchangeAccountType.ACCOUNT_TYPE_AOSP) ||
                oldAccountType.accountType.equals(ExchangeAccountType.ACCOUNT_TYPE_GOOGLE)&&