Skip to content

Commit

Permalink
* [android] NPE bug fix when recycleImage
Browse files Browse the repository at this point in the history
  • Loading branch information
zshshr committed Jun 12, 2016
1 parent 928eac3 commit 4edecef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ public void onScrollStateChanged(RecyclerView recyclerView, int newState) {

if(newState == RecyclerView.SCROLL_STATE_IDLE ){
for(ListBaseViewHolder holder:recycleViewList){
if(!holder.getComponent().isUsing()) {
if(holder!=null
&& holder.getComponent()!=null
&& !holder.getComponent().isUsing()) {
recycleImage(holder.getView());
}
}
Expand Down

0 comments on commit 4edecef

Please sign in to comment.