[Android] Prevent NPE
Geoffrey Métais
git at videolan.org
Mon Apr 10 17:32:31 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Apr 10 16:21:15 2017 +0200| [ec52a5216989de26370f34a3777dc5bc364bf501] | committer: Geoffrey Métais
Prevent NPE
> https://code.videolan.org/videolan/vlc-android/commit/ec52a5216989de26370f34a3777dc5bc364bf501
---
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 57bff79..9b00089 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1187,7 +1187,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
seekDelta(-60000);
return true;
case KeyEvent.KEYCODE_BUTTON_A:
- if (mOverlayProgress.getVisibility() == View.VISIBLE)
+ if (mOverlayProgress != null && mOverlayProgress.getVisibility() == View.VISIBLE)
return false;
case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
case KeyEvent.KEYCODE_MEDIA_PLAY:
More information about the Android
mailing list