[Android] Video player: Nullity check
Geoffrey Métais
git at videolan.org
Wed Apr 10 11:07:19 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 10 10:57:38 2019 +0200| [ea7da7478c02e6abeb43dea5d4e798666d3bb97c] | committer: Geoffrey Métais
Video player: Nullity check
> https://code.videolan.org/videolan/vlc-android/commit/ea7da7478c02e6abeb43dea5d4e798666d3bb97c
---
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