[Android] Prevent NPE
Geoffrey Métais
git at videolan.org
Fri Aug 11 11:46:21 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Aug 11 11:44:56 2017 +0200| [f146027fc96b5506fff0c6f6fa7e34b422afc13a] | committer: Geoffrey Métais
Prevent NPE
> https://code.videolan.org/videolan/vlc-android/commit/f146027fc96b5506fff0c6f6fa7e34b422afc13a
---
.../src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
index 440f091c1..16c579b9f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
@@ -112,7 +112,7 @@ public class NetworkBrowserFragment extends BaseBrowserFragment {
@Override
public void onHiddenChanged(boolean hidden) {
super.onHiddenChanged(hidden);
- if (!mRoot)
+ if (!mRoot || mFabPlay == null)
return;
if (hidden) {
setFabPlayVisibility(false);
More information about the Android
mailing list