Skip to content

Commit c47f013

Browse files
authored
Merge pull request #662 from Baseflow/fix/timed_metadata_nullcheck
Add nullcheck on current
2 parents aaeff40 + 979ee47 commit c47f013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MediaManager/Platforms/Apple/Player/AppleMediaPlayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected virtual void PresentationSizeChanged(NSObservedChange obj)
8989

9090
protected virtual void TimedMetaDataChanged(NSObservedChange obj)
9191
{
92-
if (!string.IsNullOrEmpty(MediaManager.Queue.Current.DisplayTitle) && !string.IsNullOrEmpty(MediaManager.Queue.Current.DisplaySubtitle))
92+
if (!string.IsNullOrEmpty(MediaManager.Queue.Current?.DisplayTitle) && !string.IsNullOrEmpty(MediaManager.Queue.Current?.DisplaySubtitle))
9393
return;
9494

9595
if (obj.NewValue is NSArray array && array.Count > 0)

0 commit comments

Comments
 (0)