Commit 62559ca6 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent NPE in background update

parent 45a6c34a
...@@ -152,6 +152,7 @@ public class TvUtil { ...@@ -152,6 +152,7 @@ public class TvUtil {
@Override @Override
public void run() { public void run() {
Bitmap cover = AudioUtil.readCoverBitmap(Uri.decode(artworkMrl), 512); Bitmap cover = AudioUtil.readCoverBitmap(Uri.decode(artworkMrl), 512);
if (cover == null) return;
if (crop) if (crop)
cover = BitmapUtil.centerCrop(cover, cover.getWidth(), cover.getWidth()*10/16); cover = BitmapUtil.centerCrop(cover, cover.getWidth(), cover.getWidth()*10/16);
final Bitmap blurred = UiTools.blurBitmap(cover, 10f); final Bitmap blurred = UiTools.blurBitmap(cover, 10f);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment