[Android] Prevent NPE
Geoffrey Métais
git at videolan.org
Thu Feb 12 17:12:35 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 12 16:35:23 2015 +0100| [6433334629f884ba1efa4d6958822ec3161134ca] | committer: Geoffrey Métais
Prevent NPE
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6433334629f884ba1efa4d6958822ec3161134ca
---
vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java b/vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java
index ffe88e0..8c15e9e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/network/NetworkFragment.java
@@ -106,7 +106,8 @@ public class NetworkFragment extends BrowserFragment implements IRefreshable, Me
public void onStop(){
super.onStop();
- mMediaBrowser.release();
+ if (mMediaBrowser != null)
+ mMediaBrowser.release();
savedPosition = mRecyclerView.getScrollY();
}
public void onStart(){
More information about the Android
mailing list