Commit 5ea724a1 authored by Geoffrey Métais's avatar Geoffrey Métais

VideoPLayer: Nullity check

parent 2e76520c
......@@ -2822,7 +2822,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override
public void onReceive(Context context, Intent intent) {
if (intent == null) return;
if (intent == null || mService == null) return;
switch (intent.getAction()) {
case BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED:
case BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED:
......
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