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

Commit 5671c7e7 authored by Maurice Chu's avatar Maurice Chu
Browse files

Fix binding editors when state is null

The bindEditors() can only bind views when there is
data, so this checks for a null state and returns
immediately if null.

Bug: 6601692
Change-Id: I1abfd75ce3bffb5c96a7b5cb609c6d1686581649
parent 19591a69
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -675,6 +675,12 @@ public class ContactEditorFragment extends Fragment implements
    }

    private void bindEditors() {
        // bindEditors() can only bind views if there is data in mState, so immediately return
        // if mState is null
        if (mState == null) {
            return;
        }

        // Sort the editors
        Collections.sort(mState, mComparator);