am 6f372bb7: am 5fa148a1: am 5bfab60f: Fix NPE in Live Wallpaper loader

* commit '6f372bb723a87bb6c292067a848e1c4aa8153107':
  Fix NPE in Live Wallpaper loader
This commit is contained in:
Michael Jurka
2014-02-14 20:37:44 +00:00
committed by Android Git Automerger
@@ -190,7 +190,9 @@ public class LiveWallpaperListAdapter extends BaseAdapter implements ListAdapter
LiveWallpaperListAdapter.this.notifyDataSetChanged(); LiveWallpaperListAdapter.this.notifyDataSetChanged();
break; break;
} }
info.mThumbnail.setDither(true); if (info.mThumbnail != null) {
info.mThumbnail.setDither(true);
}
if (mWallpaperPosition < mWallpapers.size()) { if (mWallpaperPosition < mWallpapers.size()) {
mWallpapers.set(mWallpaperPosition, info); mWallpapers.set(mWallpaperPosition, info);
} else { } else {