diff --git a/src/Lavalink4NET.Rest/Entities/Tracks/TrackLoadResult.cs b/src/Lavalink4NET.Rest/Entities/Tracks/TrackLoadResult.cs index a724ba44..8d5627c0 100644 --- a/src/Lavalink4NET.Rest/Entities/Tracks/TrackLoadResult.cs +++ b/src/Lavalink4NET.Rest/Entities/Tracks/TrackLoadResult.cs @@ -20,7 +20,7 @@ public TrackLoadResult(object? value, PlaylistInformation playlist) public PlaylistInformation? Playlist => _playlist?.Name is not null ? _playlist : null; [MemberNotNullWhen(true, nameof(Playlist))] - public bool IsPlaylist => _playlist.Name is not null; + public bool IsPlaylist => _playlist?.Name is not null; [MemberNotNullWhen(true, nameof(Track))] public bool IsSuccess => _value is LavalinkTrack[] or LavalinkTrack; @@ -84,4 +84,4 @@ public static TrackLoadResult CreateError(TrackException exception) } } -file sealed record class ExceptionData(TrackException Exception); \ No newline at end of file +file sealed record class ExceptionData(TrackException Exception);