diff options
| author | Zero King <l2dy@icloud.com> | 2025-03-02 01:03:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-02 01:03:55 +0800 |
| commit | 82b3135dd9eaa2cc0ef29d82d8cb7196d4724394 (patch) | |
| tree | 52586febaca707732400b0e9c4e726e0ee4eb8f6 /Emby.Server.Implementations/Playlists | |
| parent | a8d960729860083af66c7f5144875754b95f1812 (diff) | |
Fix possible NullReferenceException in playlist warning
Diffstat (limited to 'Emby.Server.Implementations/Playlists')
| -rw-r--r-- | Emby.Server.Implementations/Playlists/PlaylistManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Playlists/PlaylistManager.cs b/Emby.Server.Implementations/Playlists/PlaylistManager.cs index daeb7fed8..9e780a49e 100644 --- a/Emby.Server.Implementations/Playlists/PlaylistManager.cs +++ b/Emby.Server.Implementations/Playlists/PlaylistManager.cs @@ -310,7 +310,7 @@ namespace Emby.Server.Implementations.Playlists var item = playlist.LinkedChildren.FirstOrDefault(i => string.Equals(entryId, i.ItemId?.ToString("N", CultureInfo.InvariantCulture), StringComparison.OrdinalIgnoreCase)); if (item is null) { - _logger.LogWarning("Modified item not found in playlist. ItemId: {ItemId}, PlaylistId: {PlaylistId}", item.ItemId, playlistId); + _logger.LogWarning("Modified item not found in playlist. ItemId: {ItemId}, PlaylistId: {PlaylistId}", entryId, playlistId); return; } |
