title: Crash github.com/siralam/LoopingViewPager Android studio
body: <p>I’m following a tutorial on a basic app. The code has been deprecated, so I worked around it on a single image. But now I’m getting crashes all the time an the activity. I know it’s here because before I started this part the app it worked fine.</p>
  
  <pre><code>public class MyBestDealsAdapter extends LoopingPagerAdapter&lt;BestDealModel&gt; {
  
      @BindView(R.id.img_best_deal)
      ImageView img_best_deal;
      @BindView(R.id.txt_best_deals)
      TextView txt_best_deals;
  
      Unbinder unbinder;
  
      public MyBestDealsAdapter(Context context, List&lt;BestDealModel&gt; itemList, boolean isInfinite) {
          super(context, itemList, isInfinite);
         // this.context = context;
          //this.BestDealModel= itemList;   **this is what I tried**
      }
  
      @Override
      protected View inflateView(int viewType, ViewGroup container, int listPosition) {
          return LayoutInflater. **this context for some reason is getting flagged y tried creating Context context and the flagg goes away but still crash** from(context).inflate(R.layout.layout_best_deals_items,container,false);
      }
  
      @Override
      protected void bindView(View convertView, int listPosition, int viewType) {
          unbinder = ButterKnife.bind(this,convertView);
          //set data
          Glide.with(convertView).load **same here for itemList i tried BestDealModel itemlist flag gone still** crash(itemList.get(listPosition).getImage()).into(img_best_deal);
  </code></pre>