title: Proguard issue with Support Library and RecyclerView onBindViewHolder and onCreateViewHolder
body: <blockquote>
    <p>Fatal Exception: java.lang.NullPointerException at
    my.packa.CustomAdapter.onCreateViewHolder(Unknown
    Source) at
    my.package.name.CustomAdapter.onBindViewHolder(Unknown
    Source) at
    android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(Unknown
    Source) at
    android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(Unknown
    Source) at
    android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(Unknown
    Source) at
    android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(Unknown
    Source) at
    android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(Unknown
    Source) at
    android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(Unknown
    Source) at
    android.support.v7.widget.LinearLayoutManager$LayoutState.next(Unknown
    Source) at
    android.support.v7.widget.LinearLayoutManager.layoutChunk(Unknown
    Source) at android.support.v7.widget.LinearLayoutManager.fill(Unknown
    Source) at
    android.support.v7.widget.LinearLayoutManager.onLayoutChildren(Unknown
    Source) at
    android.support.v7.widget.RecyclerView.dispatchLayoutStep2(Unknown
    Source) at
    android.support.v7.widget.RecyclerView.dispatchLayout(Unknown Source)
    at android.support.v7.widget.RecyclerView.onLayout(Unknown Source) at
    android.view.View.layout(View.java:14948) at
    android.view.ViewGroup.layout(ViewGroup.java:4631) at
    android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(Unknown
    Source) at
    android.support.design.widget.ViewOffsetBehavior.onLayoutChild(Unknown
    Source) at
    android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(Unknown
    Source) at
    android.support.design.widget.CoordinatorLayout.onLayout(Unknown
    Source) at android.view.View.layout(View.java:14948) at
    android.view.ViewGroup.layout(ViewGroup.java:4631) at
    android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055) at
    android.view.View.layout(View.java:14948) at
    android.view.ViewGroup.layout(ViewGroup.java:4631) at
    android.support.v4.widget.SwipeRefreshLayout.onLayout(Unknown Source)
    at android.view.View.layout(View.java:14948) at
    android.view.ViewGroup.layout(ViewGroup.java:4631) at
    android.support.v4.widget.DrawerLayout.onLayout(Unknown Source) at</p>
  </blockquote>
  
  <p>ProGuard Rules look like this:</p>
  
  <pre><code>-dontwarn com.bumptech.glide.load.resource.bitmap.VideoDecoder
  -keep class android.support.v7.widget.** { *; }
  -keep class android.support.v7.widget.SearchView { *; }
  -keep class java.lang.** { *; }
  -keep class android.support.** { *; }
  -dontwarn android.support.**
  -keep class android.support.v7.widget.** { *; }
  -keep class android.support.design.widget.** { *; }
  -keep class my.package.name.CustomAdapter
  
  
  # Hide warnings about references to newer platforms in the library
  -dontwarn android.support.v7.**
  # don't process support library
  -keep class android.support.v7.** { *; }
  -keep interface android.support.v7.** { *; }
  
  
  -dontwarn android.support.design.**
  -keep class android.support.design.** { *; }
  -keep interface android.support.design.** { *; }
  -keep public class android.support.design.R$* { *; }
  </code></pre>
  
  <p>The issue happens only in release apk when proguard is running</p>