Prevent NPE
This commit is contained in:
parent
901bc6c774
commit
a691ab2614
|
@ -78,7 +78,9 @@ public class ExoPlayerWrapper implements IPlayer {
|
|||
|
||||
@Override
|
||||
public void onPlayerError(ExoPlaybackException error) {
|
||||
audioErrorListener.onError(null, 0, 0);
|
||||
if (audioErrorListener != null) {
|
||||
audioErrorListener.onError(null, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue