leits / MeetingBar

🇺🇦 Your meetings at your fingertips in the macOS menu bar
https://meetingbar.app
Apache License 2.0
4.44k stars 192 forks source link

Bug: Crash at launch: Meeting attendees without email address. #460

Closed amcedwards closed 2 years ago

amcedwards commented 2 years ago

App version

Installation source

Describe the bug

To Reproduce

  1. Create a meeting with one or more attendees.

  2. At least one attendee should have a nil email address. In my case, it is a Microsoft Exchange calendar that has multiple attendees with x500 email addresses. e.g. /o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPXXX)/cn=Recipients/cn=5e17910fea164345b55313d0f6f4fXXX-John Smit. This email address shows as nil

  3. Launch Meetingbar (immediate exit)

  4. Launch Meetingbar via cli, returns:

    2022-05-22 10:42:12.375491-0400 MeetingBar[3301:16960432] Category EVENT was registered
    2022-05-22 10:42:12.375527-0400 MeetingBar[3301:16960432] Category SNOOZE_EVENT was registered
    MeetingBar/EKEventStore.swift:105: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
    2022-05-22 10:42:12.464587-0400 MeetingBar[3301:16959618] MeetingBar/EKEventStore.swift:105: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

Expected behavior

Screenshots image

Desktop (please complete the following information):

leits commented 2 years ago

Thanks, fixed!