golang-ical: Property spanning multiple lines causes `Malformed Calendar Error`

Iterating over events in an Outlook generated .ics-File creates an invalid memory address or nil pointer dereference-Error.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x4a5bdd]

goroutine 1 [running]:
github.com/arran4/golang-ical.(*Calendar).Events(0x0)
        /workspaces/golang-ical/calendar.go:409 +0x1d
main.main()
        /tmp/test/testing.go:14 +0x89

I have attached an example entry I exported from Outlook as well as my testing code to reproduce the error.

issue48_attachments.zip

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 25 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Oh sorry. I will have to have a better look after work, it could be that it’s defining the timezone with that ID.