[Android] Prevent NPE in browsers
Geoffrey Métais
git at videolan.org
Sun Sep 24 14:29:13 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Sun Sep 24 14:28:39 2017 +0200| [1d92baa8a1866ea1d235e3c617f299eda3f27a0b] | committer: Geoffrey Métais
Prevent NPE in browsers
> https://code.videolan.org/videolan/vlc-android/commit/1d92baa8a1866ea1d235e3c617f299eda3f27a0b
---
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java | 3 ++-
1 file changed, 2 insertions(+), 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 1d9ec5e58..008480c4f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -397,7 +397,8 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
runOnBrowserThread(new Runnable() {
@Override
public void run() {
- mFoldersContentLists.clear();
+ if (mFoldersContentLists != null)
+ mFoldersContentLists.clear();
initMediaBrowser(BaseBrowserFragment.this);
mCurrentParsedPosition = 0;
if (mRoot)
More information about the Android
mailing list