title: Recyclerview onclick on a null object reference
body: <p>I want to pass Recyclerview onclick to show image<br />
  I can display successfully Recyclerview，but when I click the app close<br /></p>
  
  <p>Error message<br /></p>
  
  <pre><code>Process: com.example.twjdsintern, PID: 11497
  java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' 
  on a null object reference
      at com.example.twjdsintern.splash.adapter.RecyclerAdapter.onClick(RecyclerAdapter.java:40)
  </code></pre>
  
  <p>my RecyclerAdapter<br /></p>
  
  <p>This problem seems to be here</p>
  
  <pre><code>@Override
  public void onClick(View v) {
  
      if(mEvent != null){
          mEvent.onClick((int)v.getTag());
      }
  }
  </code></pre>