- March 24, 2007
- 12,073
- 7,459
- Home Country
- Germany
- Moderator
- #41
@disaster123 can you add
after the lines:
https://github.com/MediaPortal/Medi...e/UI/TV/SlimTvService3/SlimTvService3.cs#L405
and
https://github.com/MediaPortal/Medi...e/UI/TV/SlimTvService3/SlimTvService3.cs#L414
But it's only a try, because this is illogical that the issue happens later in UPnP serialization and not earlier, because the Linq expression filters by "c.IsVisibleInGuide", and this would throw an NRE before.
You can also try to add a sanity check in UPnP:
https://github.com/MediaPortal/Medi...faces/UPnP/DataTypes/UPnPDtChannelList.cs#L65
C#:
.Where(c => c != null)
https://github.com/MediaPortal/Medi...e/UI/TV/SlimTvService3/SlimTvService3.cs#L405
and
https://github.com/MediaPortal/Medi...e/UI/TV/SlimTvService3/SlimTvService3.cs#L414
But it's only a try, because this is illogical that the issue happens later in UPnP serialization and not earlier, because the Linq expression filters by "c.IsVisibleInGuide", and this would throw an NRE before.
You can also try to add a sanity check in UPnP:
https://github.com/MediaPortal/Medi...faces/UPnP/DataTypes/UPnPDtChannelList.cs#L65
C#:
if (channel != null) channel.Serialize(writer);