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

Commit a9095e07 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Remove NPE inside WidgetsListAdapter during monkey actor test

b/22518383

Change-Id: I1a683c49be93af150f7873390b723cee0d4ac5df
parent e54fa58d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -87,6 +87,9 @@ public class WidgetsListAdapter extends Adapter<WidgetsRowViewHolder> {

    @Override
    public int getItemCount() {
        if (mWidgetsModel == null) {
            return 0;
        }
        return mWidgetsModel.getPackageSize();
    }