DLNA: Media playback crashes if profile id not found #2783

Closed
opened 2026-02-06 22:25:14 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @BaronGreenback on GitHub (Mar 13, 2021).

Originally assigned to: @BaronGreenback on GitHub.

Problem is in the dlna manager with .First crashes the code and returns a Sequence contains no matching element error.

        public DeviceProfile GetProfile(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                throw new ArgumentNullException(nameof(id));
            }

            var info = GetProfileInfosInternal().Firsti => string.Equals(i.Info.Id, id, StringComparison.OrdinalIgnoreCase));

            return ParseProfileFile(info.Path, info.Info.Type);
        }

Shouldn't happen as id should alway be available. Am investigating.

Originally created by @BaronGreenback on GitHub (Mar 13, 2021). Originally assigned to: @BaronGreenback on GitHub. Problem is in the dlna manager with .First crashes the code and returns a `Sequence contains no matching element` error. ``` public DeviceProfile GetProfile(string id) { if (string.IsNullOrEmpty(id)) { throw new ArgumentNullException(nameof(id)); } var info = GetProfileInfosInternal().Firsti => string.Equals(i.Info.Id, id, StringComparison.OrdinalIgnoreCase)); return ParseProfileFile(info.Path, info.Info.Type); } ``` Shouldn't happen as id should alway be available. Am investigating.
OVERLORD added the bug label 2026-02-06 22:25:14 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#2783