mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-04 07:18:21 +03:00
added a null check in markSegments
This commit is contained in:
parent
7d456c9a9c
commit
d80013ee48
1 changed files with 5 additions and 0 deletions
|
@ -4289,6 +4289,11 @@ public final class Player implements
|
|||
private void markSegments() {
|
||||
binding.playbackSeekBar.clearMarkers();
|
||||
|
||||
if (currentItem == null) {
|
||||
Log.w(TAG, "markSegments() - currentItem was null");
|
||||
return;
|
||||
}
|
||||
|
||||
final VideoSegment[] segments = currentItem.getVideoSegments();
|
||||
|
||||
if (segments == null || segments.length == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue