[Android] Prevent NPE
Geoffrey Métais
git at videolan.org
Mon Sep 4 10:14:33 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Sep 4 09:42:04 2017 +0200| [ba230d6616aa3fe48beecf6c9fd4fb9d41274d34] | committer: Geoffrey Métais
Prevent NPE
> https://code.videolan.org/videolan/vlc-android/commit/ba230d6616aa3fe48beecf6c9fd4fb9d41274d34
---
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index ea785489e..7ad145a74 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -360,7 +360,7 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
*/
protected void updateEmptyView() {
if (mAdapter.isEmpty()) {
- if (mSwipeRefreshLayout.isRefreshing()) {
+ if (mSwipeRefreshLayout == null || mSwipeRefreshLayout.isRefreshing()) {
mEmptyView.setText(R.string.loading);
mEmptyView.setVisibility(View.VISIBLE);
mRecyclerView.setVisibility(View.GONE);
More information about the Android
mailing list