Commit 73035f27 authored by Geoffrey Métais's avatar Geoffrey Métais

Video player: prevent NPE on switch to popup

parent f11fa0f8
......@@ -596,7 +596,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
@TargetApi(Build.VERSION_CODES.N)
public void switchToPopup() {
final MediaWrapper mw = mService.getCurrentMediaWrapper();
final MediaWrapper mw = mService != null ? mService.getCurrentMediaWrapper() : null;
if (mw == null)
return;
if (AndroidDevices.hasPiP) {
......
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