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

Commit 28583f88 authored by Wenyi Wang's avatar Wenyi Wang Committed by android-build-merger
Browse files

Fix NPE in loading group items

am: 6942b708

Change-Id: I1ea601888ffa53252490b5f79edcf694cdfafca1
parents a83b09bc 6942b708
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -56,6 +56,9 @@ public final class GroupsFragment extends Fragment {

                @Override
                public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
                    if (data == null) {
                        return;
                    }
                    mGroupListItems.clear();
                    for (int i = 0; i < data.getCount(); i++) {
                        if (data.moveToNext()) {