Skip to content

Commit 979ee47

Browse files
committed
Add nullcheck on current
1 parent aaeff40 commit 979ee47

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)