ical-org / ical.net

ical.net - an open source iCal library for .Net
Other
797 stars 231 forks source link

Read Organizer.SentBy throw exception #587

Open idiotsky opened 8 months ago

idiotsky commented 8 months ago

When Parameters.Get("SENT-BY") return null. when read Organizer.SentBy will throw exception. public virtual Uri SentBy { get => new Uri(this.Parameters.Get("SENT-BY")); } should be something like public virtual Uri SentBy { get { if(this.Parameters.Get("SENT-BY") != null) { new Uri(this.Parameters.Get("SENT-BY")); } return null. } }

axunonb commented 1 month ago

Appreciate a PR. Please double-check the new version merged with #595