[Android] Fix NPE exception
Jean-Baptiste Kempf
git at videolan.org
Fri Mar 27 21:21:46 CET 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar 27 21:21:33 2015 +0100| [1960458f9ca67cafee2f65821242e013efeca072] | committer: Jean-Baptiste Kempf
Fix NPE exception
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=1960458f9ca67cafee2f65821242e013efeca072
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index ffbeb2d..dbf8f26 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -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);
}
}
More information about the Android
mailing list