here code is Of the class
public class AdapterOrderShop extends 
RecyclerView.Adapter<AdapterOrderShop.HolderOrderShop>
implements Filterable {
private Context context;
public ArrayList<ModelOrderShop> orderShopArrayList,filterList;
private FilterOrderShop filter;
 public AdapterOrderShop(Context context, ArrayList<ModelOrderShop> orderShopArrayList) {
    this.context = context;
    this.orderShopArrayList = orderShopArrayList;
    this.filterList=orderShopArrayList;
}
@Override
public int getItemCount() {
     return orderShopArrayList.size();
} 
Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
 
    