[Android] Video player: Prevent NPE
Geoffrey Métais
git at videolan.org
Tue Jan 29 09:43:55 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jan 28 17:53:35 2019 +0100| [32ae2ebec365a0f59ce1be16d2c61a83392012b1] | committer: Geoffrey Métais
Video player: Prevent NPE
> https://code.videolan.org/videolan/vlc-android/commit/32ae2ebec365a0f59ce1be16d2c61a83392012b1
---
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 1264fe7ca..0a2c3fca9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2310,7 +2310,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
if(!mIsTv && !AndroidDevices.isChromeBook)
mOrientationToggle.setVisibility(View.VISIBLE);
- } else {
+ } else if (mService != null) {
mHudBinding.setProgress(mService.getPlaylistManager().getPlayer().getProgress());
mHudBinding.setLifecycleOwner(this);
}
More information about the Android
mailing list