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

Commit 6985dd8f authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Fixing NPE in contact editor

Bug: 2517377
Change-Id: I6ee53b075cb2946885c29ac498832f7f9aea820c
parent 48939967
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@ public final class EditContactActivity extends Activity
            final boolean hasState = entitySet.size() > 0;
            if (hasExtras && hasState) {
                // Find source defining the first RawContact found
                final EntityDelta state = target.mState.get(0);
                final EntityDelta state = entitySet.get(0);
                final String accountType = state.getValues().getAsString(RawContacts.ACCOUNT_TYPE);
                final ContactsSource source = sources.getInflatedSource(accountType,
                        ContactsSource.LEVEL_CONSTRAINTS);