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

Unverified Commit 50c103da authored by alperozturk's avatar alperozturk
Browse files

check shares

parent ca134d97
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ import it.niedermann.owncloud.notes.share.listener.ShareeListAdapterListener;
 */
public class ShareeListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    private Account account;
    private final Account account;
    private final ShareeListAdapterListener listener;
    private final Activity activity;
    private List<OCShare> shares;
@@ -49,6 +49,10 @@ public class ShareeListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol

    @Override
    public int getItemViewType(int position) {
        if (shares == null) {
            return 0;
        }

        if (position < 0 || position >= shares.size()) {
            return 0;
        }