Skip to content

Commit

Permalink
[Exposed-UI]: fix crash for NPE(may be stupid).
Browse files Browse the repository at this point in the history
  • Loading branch information
维术 committed Jan 31, 2018
1 parent fe19a17 commit 45289b3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
AppData data = mList.get(position);
if (data == null) {
return;
}
holder.color = getColor(position);
holder.iconView.setImageDrawable(data.getIcon());
holder.nameView.setText(data.getName());
Expand Down

0 comments on commit 45289b3

Please sign in to comment.