avoid strange NPE
This commit is contained in:
parent
dfd1e15791
commit
e3a431ce2e
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ public abstract class AbstractPrologCommandPlayer implements CommandPlayer, Stat
|
|||
if (android.os.Build.VERSION.SDK_INT >= 8) {
|
||||
mAudioFocusHelper = getAudioFocus();
|
||||
}
|
||||
if (mAudioFocusHelper != null) {
|
||||
if (mAudioFocusHelper != null && ctx != null) {
|
||||
mAudioFocusHelper.requestFocus(ctx, streamType);
|
||||
}
|
||||
// If AudioManager.STREAM_VOICE_CALL try using BT SCO:
|
||||
|
|
Loading…
Reference in a new issue