[Android] Video player: Nullity check
Geoffrey Métais
git at videolan.org
Wed Apr 10 14:58:16 CEST 2019
vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 10 10:57:38 2019 +0200| [ecab21b7d1dccabe95a262fdcfc3faa7065e16be] | committer: Geoffrey Métais
Video player: Nullity check
(cherry picked from commit ea7da7478c02e6abeb43dea5d4e798666d3bb97c)
> https://code.videolan.org/videolan/vlc-android/commit/ecab21b7d1dccabe95a262fdcfc3faa7065e16be
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 1b159a92b..3cd8cd347 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2894,7 +2894,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
WorkersKt.runIO(new Runnable() {
@Override
public void run() {
- final MediaPlayer.Title[] titles = mService.getTitles();
+ final MediaPlayer.Title[] titles = mService != null ? mService.getTitles() : null;
WorkersKt.runOnMainThread(new Runnable() {
@Override
public void run() {
More information about the Android
mailing list