[Android] Nullity check
Geoffrey Métais
git at videolan.org
Fri Mar 10 18:44:29 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 10 17:21:57 2017 +0100| [cedf63ef549ec99a559e1de9219c2630d8c76e8c] | committer: Geoffrey Métais
Nullity check
> https://code.videolan.org/videolan/vlc-android/commit/cedf63ef549ec99a559e1de9219c2630d8c76e8c
---
vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
index a0094ad..ef28401 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
@@ -393,6 +393,7 @@ public class PlaylistActivity extends AudioPlayerContainerActivity implements IE
@Override
public void onClick(View v) {
- mService.load(mPlaylist.getTracks(mMediaLibrary), 0);
+ if (mService != null)
+ mService.load(mPlaylist.getTracks(mMediaLibrary), 0);
}
}
More information about the Android
mailing list