Commit ec52a521 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE

parent 9e6d850e
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment