Fix NPE exception

This commit is contained in:
Jean-Baptiste Kempf 2015-03-27 21:21:33 +01:00
parent b5f51fd9c1
commit 1960458f9c

View File

@ -591,7 +591,7 @@ public class AudioBrowserFragment extends BrowserFragment implements SwipeRefres
mEmptyView.setVisibility(mPlaylistAdapter.isEmpty() ? View.VISIBLE : View.GONE);
mEmptyView.setText(R.string.noplaylist);
} else {
mEmptyView.setVisibility(mAudioList.isEmpty() ? View.VISIBLE : View.GONE);
mEmptyView.setVisibility(mAudioList == null || mAudioList.isEmpty() ? View.VISIBLE : View.GONE);
mEmptyView.setText(R.string.nomedia);
}
}