mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 02:08:40 +00:00
Fix NPE in VideoPlayer error handler.
This commit is contained in:
@@ -117,8 +117,11 @@ public class VideoPlayer extends FrameLayout {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPlayerError(PlaybackException error) {
|
||||
playerCallback.onError();
|
||||
public void onPlayerError(@NonNull PlaybackException error) {
|
||||
Log.w(TAG, "A player error occurred", error);
|
||||
if (playerCallback != null) {
|
||||
playerCallback.onError();
|
||||
}
|
||||
}
|
||||
});
|
||||
exoView.setPlayer(exoPlayer);
|
||||
|
||||
Reference in New Issue
Block a user