Prevent NPE

This commit is contained in:
ByteHamster 2018-07-25 23:14:41 +02:00
parent 901bc6c774
commit a691ab2614
1 changed files with 3 additions and 1 deletions

View File

@ -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