解决recommendGameList为null奔溃bug

This commit is contained in:
huangzhuanghua
2016-10-14 18:36:55 +08:00
parent e42e4ee96d
commit fcdb0e3d80
2 changed files with 12 additions and 4 deletions

View File

@ -128,7 +128,7 @@ public class ConcernRecommendAdapter extends RecyclerView.Adapter<ConcernViewHol
}
}
}
if (recommendGameList.size() != 0) {
if (recommendGameList != null && recommendGameList.size() != 0) {
listener.loadDone();
}
}