Nullability checks in ExoPlayerWrapper
This commit is contained in:
parent
7a3bb825ed
commit
0172a5db13
|
@ -105,7 +105,9 @@ public class ExoPlayerWrapper implements IPlayer {
|
|||
|
||||
@Override
|
||||
public void onSeekProcessed() {
|
||||
audioSeekCompleteListener.onSeekComplete(null);
|
||||
if (audioSeekCompleteListener != null) {
|
||||
audioSeekCompleteListener.onSeekComplete(null);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -174,7 +176,9 @@ public class ExoPlayerWrapper implements IPlayer {
|
|||
@Override
|
||||
public void seekTo(int i) throws IllegalStateException {
|
||||
exoPlayer.seekTo(i);
|
||||
audioSeekCompleteListener.onSeekComplete(null);
|
||||
if (audioSeekCompleteListener != null) {
|
||||
audioSeekCompleteListener.onSeekComplete(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue