Commit 97be49d3 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent NPE

parent a21476eb
......@@ -76,6 +76,8 @@ public class SearchSuggestionsAdapter extends CursorAdapter {
tv1.setText(cursor.getString(cursor.getColumnIndex(MediaDatabase.MEDIA_TITLE)));
view.setBackgroundColor(backgroundColor);
if (mw == null)
return;
String artist = mw.getAlbumArtist();
if (artist == null)
artist = mw.getArtist();
......
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